/*!
Theme Name: Этичная среда
Theme URI: https://ee.humaneed.ru/
Author: Голоса за животных / Биоэтика детям
Author URI: https://humaneed.ru/
Description: Тема WordPress для лендинга конкурса исследовательских проектов «Этичная среда». Перенос сайта ee.humaneed.ru с Tilda. Редактирование — штатным редактором Gutenberg через паттерны блоков.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ethical-environment
Tags: one-column, custom-logo, custom-menu, block-patterns, editor-style, full-width-template, translation-ready, accessibility-ready
*/

/* =========================================================================
   1. Токены дизайна
   Значения сняты с оригинального сайта ee.humaneed.ru (Tilda) 06.08.2026:
   зелёный rgb(65,96,88), жёлтый rgb(255,207,3), кремовый rgb(255,241,183),
   шрифт Montserrat, ссылка в контактах rgb(255,133,98).
   ========================================================================= */

:root {
	--ee-green: #416058;
	--ee-green-dark: #334c46;
	--ee-green-link: #45625a;
	--ee-yellow: #ffcf03;
	--ee-yellow-dark: #e6b900;
	--ee-cream: #fff1b7;
	--ee-coral: #ff8562;
	--ee-black: #000;
	--ee-white: #fff;
	--ee-grey: #6b6b6b;

	--ee-container: 1200px;
	--ee-gutter: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);

	--ee-radius: 0;
	--ee-focus: 3px solid var(--ee-green);

	--ee-header-h: 80px;

	--ee-fs-hero: clamp(1.75rem, 1.05rem + 3.1vw, 2.5rem);        /* 28 → 40 px */
	--ee-fs-hero-descr: clamp(1rem, 0.87rem + 0.55vw, 1.25rem);   /* 16 → 20 px */
	--ee-fs-section: clamp(2rem, 0.9rem + 4.7vw, 3.875rem);       /* 32 → 62 px */
	--ee-fs-cta: clamp(1.25rem, 0.62rem + 2.7vw, 2.25rem);        /* 20 → 36 px */
	--ee-fs-lead: clamp(1.125rem, 0.98rem + 0.62vw, 1.5rem);      /* 18 → 24 px */
	--ee-fs-name: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);        /* 17 → 20 px */
	--ee-fs-body: 1rem;
	--ee-fs-small: 0.875rem;

	--ee-lh-tight: 1.05;
	--ee-lh-title: 1.23;
	--ee-lh-body: 1.55;
}

/* =========================================================================
   2. Базовые стили
   ========================================================================= */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ee-header-h) + 16px);
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	font-size: var(--ee-fs-body);
	font-weight: 400;
	line-height: var(--ee-lh-body);
	color: var(--ee-black);
	background: var(--ee-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

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

a {
	color: var(--ee-green-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--ee-green-dark);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--ee-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

h1,
h2,
h3,
h4 {
	font-weight: 700;
	line-height: var(--ee-lh-title);
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ee-skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	z-index: 1000;
	padding: 0;
	background: var(--ee-yellow);
	color: var(--ee-black);
	font-weight: 600;
	text-decoration: none;
}

.ee-skip-link:focus {
	left: 8px;
	top: 8px;
	width: auto;
	height: auto;
	padding: 12px 20px;
	overflow: visible;
	clip: auto;
	clip-path: none;
}

/* =========================================================================
   3. Разметка контейнеров (соответствует t-container 1200px у Tilda)
   ========================================================================= */

.ee-container,
.entry-content > *:not(.alignfull):not(.alignwide) {
	max-width: var(--ee-container);
	margin-inline: auto;
	padding-inline: var(--ee-gutter);
}

.entry-content > .alignwide {
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: var(--ee-gutter);
}

.entry-content > .alignfull {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

/* Вертикальный ритм секций — из классов t-rec_pt_* / t-rec_pb_* оригинала */
.ee-section {
	padding-block: clamp(2.5rem, 1.2rem + 4vw, 3.75rem);
}

.ee-section--partners {
	padding-block: clamp(3rem, 1.4rem + 5vw, 5.625rem) clamp(2.5rem, 1.2rem + 4vw, 4.6875rem);
}

.ee-section--tight {
	padding-block: clamp(1.75rem, 1rem + 2.6vw, 2.8125rem);
}

.ee-section--jury {
	padding-block: clamp(3.5rem, 1.5rem + 6vw, 7.5rem) clamp(3.5rem, 1.6rem + 6.4vw, 8.4375rem);
}

.ee-section--contacts {
	padding-block: clamp(2.5rem, 1.4rem + 4.4vw, 5.625rem) clamp(1.875rem, 1.4rem + 1.6vw, 1.875rem);
}

/* =========================================================================
   4. Шапка
   ========================================================================= */

.ee-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ee-white);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ee-header__inner {
	max-width: none;
	padding: 8px var(--ee-gutter);
	min-height: var(--ee-header-h);
	display: flex;
	align-items: center;
	gap: 16px;
	justify-content: space-between;
}

.ee-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	flex: 0 0 auto;
}

.ee-header__brand img,
.ee-header__brand .custom-logo {
	width: auto;
	max-height: 64px;
}

.ee-header__title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--ee-green);
	margin: 0;
	line-height: 1.2;
}

.ee-header__nav-wrap {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 32px);
}

.ee-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: clamp(12px, 2vw, 30px);
	margin: 0;
	padding: 0;
}

.ee-menu a {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ee-green-link);
	text-decoration: none;
	white-space: nowrap;
}

.ee-menu a:hover,
.ee-menu a:focus-visible,
.ee-menu .current-menu-item > a {
	text-decoration: underline;
}

.ee-social {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.ee-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--ee-green);
	background: transparent;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ee-social a:hover,
.ee-social a:focus-visible {
	background: var(--ee-yellow);
	color: var(--ee-black);
}

.ee-social svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Бургер для узких экранов */
.ee-burger {
	display: none;
	appearance: none;
	border: 0;
	background: transparent;
	padding: 8px;
	cursor: pointer;
	color: var(--ee-green);
}

.ee-burger svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

@media (max-width: 719px) {
	.ee-burger {
		display: block;
	}

	.ee-header__nav-wrap {
		position: absolute;
		inset: 100% 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--ee-white);
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		padding: 8px var(--ee-gutter) 20px;
		display: none;
	}

	.ee-header__nav-wrap.is-open {
		display: flex;
	}

	.ee-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.ee-menu a {
		display: block;
		padding: 10px 0;
	}

	.ee-social {
		padding-top: 8px;
	}
}

/* =========================================================================
   5. Обложка (hero)
   ========================================================================= */

.ee-hero.wp-block-cover,
.ee-hero {
	min-height: min(100svh, 900px);
	align-items: center;
}

.ee-hero .wp-block-cover__inner-container,
.ee-hero__inner {
	max-width: var(--ee-container);
	margin-inline: auto;
	padding-inline: var(--ee-gutter);
	width: 100%;
}

.ee-hero__text {
	max-width: 660px;
}

.ee-hero h1,
.ee-hero .ee-hero__title {
	font-size: var(--ee-fs-hero);
	line-height: var(--ee-lh-tight);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--ee-white);
	margin: 0 0 0.6em;
	max-width: 660px;
	overflow-wrap: normal;
	word-break: keep-all;
	text-wrap: balance;
}

.ee-hero p,
.ee-hero .ee-hero__descr {
	font-size: var(--ee-fs-hero-descr);
	font-weight: 500;
	line-height: 1.55;
	color: var(--ee-white);
	margin: 0;
}

/* Затемнение фото под текстом задаётся самим блоком «Обложка»
   (параметр «Непрозрачность наложения» = 40 %). В оригинале на Tilda
   фильтра не было — добавлено ради контраста белого текста.
   См. раздел «Что изменено» в инструкции. */

/* =========================================================================
   6. Полоса-призыв (CTA)
   ========================================================================= */

.ee-cta {
	background: var(--ee-green);
	padding: 0;
}

.ee-cta .wp-block-buttons {
	gap: 0;
	margin: 0;
}

.ee-cta .wp-block-button {
	width: 100%;
}

.ee-cta .wp-block-button__link,
.ee-cta__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 160px;
	padding: clamp(1.5rem, 1rem + 2vw, 3.4375rem) var(--ee-gutter);
	background: var(--ee-yellow);
	color: var(--ee-white);
	font-size: var(--ee-fs-cta);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	border-radius: var(--ee-radius);
	transition: background-color 0.2s ease;
}

.ee-cta .wp-block-button__link:hover,
.ee-cta .wp-block-button__link:focus-visible,
.ee-cta__link:hover,
.ee-cta__link:focus-visible {
	background: var(--ee-yellow-dark);
	color: var(--ee-white);
}

@media (max-width: 599px) {
	.ee-cta .wp-block-button__link,
	.ee-cta__link {
		min-height: 110px;
	}
}

/* =========================================================================
   7. Заголовки секций
   ========================================================================= */

.ee-section__title,
.ee-section h2 {
	font-size: var(--ee-fs-section);
	line-height: var(--ee-lh-title);
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
	color: var(--ee-yellow);
	margin: 0 0 0.4em;
	text-wrap: balance;
}

.ee-section--on-green h2,
.ee-section--on-green .ee-section__title {
	color: var(--ee-white);
	font-weight: 700;
}

.ee-section--on-yellow h2,
.ee-section--on-yellow .ee-section__title {
	color: var(--ee-white);
	font-weight: 600;
}

.ee-section__lead {
	font-size: var(--ee-fs-lead);
	font-weight: 300;
	line-height: 1.5;
	text-align: center;
	color: var(--ee-green);
	max-width: 46ch;
	margin: 0 auto 2.5rem;
}

.ee-section--on-green .ee-section__lead {
	color: var(--ee-white);
}

/* =========================================================================
   8. Слайдер фотографий (замена Tilda t604)
   Без JS работает как горизонтальная лента со scroll-snap.
   ========================================================================= */

.ee-slider {
	position: relative;
	margin-inline: auto;
	max-width: 1400px;
}

.ee-slider__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0 var(--ee-gutter) 8px;
	margin: 0;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: var(--ee-yellow) transparent;
}

.ee-slider__track::-webkit-scrollbar {
	height: 6px;
}

.ee-slider__track::-webkit-scrollbar-thumb {
	background: var(--ee-yellow);
	border-radius: 3px;
}

.ee-slider__slide {
	flex: 0 0 min(860px, 88%);
	scroll-snap-align: center;
	margin: 0;
}

.ee-slider__slide img,
.ee-slider__slide figure img {
	width: 100%;
	height: clamp(230px, 42vw, 550px);
	object-fit: cover;
	border-radius: var(--ee-radius);
}

.ee-slider__slide figcaption {
	font-size: var(--ee-fs-small);
	color: var(--ee-grey);
	padding-top: 8px;
	text-align: center;
}

.ee-slider__btn {
	position: absolute;
	top: calc(50% - 26px);
	transform: translateY(-50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ee-green);
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ee-slider__btn:hover:not([disabled]) {
	background: var(--ee-yellow);
	color: var(--ee-black);
}

.ee-slider__btn[disabled] {
	opacity: 0.35;
	cursor: default;
}

.ee-slider__btn svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.ee-slider__btn--prev {
	left: 6px;
}

.ee-slider__btn--next {
	right: 6px;
}

@media (max-width: 599px) {
	.ee-slider__btn {
		display: none;
	}
}

/* =========================================================================
   9. Сетка логотипов (партнёры / инфопартнёры / спецноминации)
   ========================================================================= */

.ee-logos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: clamp(12px, 2vw, 24px);
	align-items: center;
	justify-items: center;
	max-width: var(--ee-container);
	margin-inline: auto;
	padding-inline: var(--ee-gutter);
	list-style: none;
}

@media (min-width: 720px) {
	.ee-logos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.ee-logos {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.ee-logos__item {
	margin: 0;
	width: 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(6px, 1vw, 20px);
}

.ee-logos__item a,
.ee-logos__item img {
	display: block;
}

.ee-logos__item img {
	max-width: min(200px, 100%);
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.ee-logos__item a:hover img,
.ee-logos__item a:focus-visible img {
	transform: scale(1.04);
}

/* =========================================================================
   10. Жюри (замена Tilda t905)
   Карточка: текст слева, квадратное фото справа — как в оригинале.
   ========================================================================= */

.ee-jury {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(24px, 3vw, 40px);
	max-width: 1160px;
	margin-inline: auto;
	padding-inline: var(--ee-gutter);
	list-style: none;
}

@media (min-width: 900px) {
	.ee-jury {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
	}
}

.ee-jury__item {
	display: grid;
	grid-template-columns: 1fr;
	margin: 0;
}

@media (min-width: 560px) {
	.ee-jury__item {
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}
}

.ee-jury__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 29px;
}

.ee-jury__name {
	font-size: var(--ee-fs-name);
	font-weight: 600;
	line-height: 1.35;
	color: var(--ee-black);
	margin: 0 0 0.5em;
}

.ee-jury__role {
	font-size: var(--ee-fs-body);
	font-weight: 300;
	line-height: 1.55;
	color: var(--ee-black);
	margin: 0;
}

.ee-jury__role a {
	color: inherit;
}

.ee-jury__photo {
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.06);
}

.ee-jury__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =========================================================================
   11. Контакты
   ========================================================================= */

.ee-contacts {
	background: var(--ee-cream);
}

.ee-contacts__inner {
	max-width: var(--ee-container);
	margin-inline: auto;
	padding-inline: var(--ee-gutter);
}

@media (min-width: 960px) {
	.ee-contacts__inner {
		padding-left: calc(var(--ee-gutter) + 200px);
	}
}

.ee-contacts h2,
.ee-contacts__title,
.ee-section--contacts h2 {
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.625rem);
	line-height: var(--ee-lh-title);
	font-weight: 600;
	color: var(--ee-black);
	text-transform: none;
	text-align: left;
	margin: 0 0 0.5em;
}

.ee-contacts__person {
	font-size: clamp(1.25rem, 1rem + 1.1vw, 1.625rem);
	font-weight: 300;
	line-height: 1.25;
	color: var(--ee-black);
	margin: 0 0 1rem;
}

.ee-contacts__role {
	display: block;
	font-size: var(--ee-fs-small);
	font-style: italic;
	line-height: 1.5;
	margin-top: 0.35em;
}

.ee-contacts__role a {
	color: var(--ee-coral);
}

.ee-contacts .ee-social {
	gap: 12px;
}

.ee-contacts .ee-social a {
	width: 48px;
	height: 48px;
	color: var(--ee-black);
}

.ee-contacts .ee-social svg {
	width: 28px;
	height: 28px;
}

/* =========================================================================
   12. Подвал
   ========================================================================= */

.ee-footer {
	background: var(--ee-cream);
	padding: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
	font-size: var(--ee-fs-small);
	color: rgba(0, 0, 0, 0.72);
}

.ee-footer__inner {
	max-width: var(--ee-container);
	margin-inline: auto;
	padding-inline: var(--ee-gutter);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	padding-top: 20px;
}

.ee-footer a {
	color: inherit;
}

/* =========================================================================
   13. Вспомогательные классы фона (используются паттернами)
   ========================================================================= */

.has-ee-green-background-color {
	background-color: var(--ee-green) !important;
}

.has-ee-yellow-background-color {
	background-color: var(--ee-yellow) !important;
}

.has-ee-cream-background-color {
	background-color: var(--ee-cream) !important;
}

.has-ee-white-background-color {
	background-color: var(--ee-white) !important;
}

.has-ee-green-color {
	color: var(--ee-green) !important;
}

.has-ee-yellow-color {
	color: var(--ee-yellow) !important;
}

.has-ee-white-color {
	color: var(--ee-white) !important;
}

.has-ee-black-color {
	color: var(--ee-black) !important;
}

/* =========================================================================
   14. Обычные страницы и записи (не лендинг)
   ========================================================================= */

.ee-page {
	padding-block: clamp(2rem, 1rem + 4vw, 4rem);
}

.ee-page__title {
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.625rem);
	color: var(--ee-green);
	text-align: left;
}

.ee-page .entry-content > * + * {
	margin-top: 1.25rem;
}

.ee-page a {
	color: var(--ee-green);
}

.ee-pagination {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding-block: 1.5rem;
}
