/* ============================================================
   Maardu School — main.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@500;700&display=swap');

/* ----- Gallery -------------------------------------------- */
.wp-block-gallery .wp-block-image {
	border-radius: 10px;
	overflow: hidden;
}

/* ----- Цвета проекта --------------------------------------- */
:root {
	--color-main-1: #9caed4;   /* средний синий */
	--color-main-2: #4b559d;   /* индиго — кнопки, иконки, акценты */
	--color-bg:     #e7eefb;   /* фон секций */
}

/* ----- Reset & base ---------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: 'Open Sans', Arial, sans-serif;
	color: #222;
	background: #fff;
	line-height: 1.6;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
}

address {
	font-style: normal;
}

/* ----- Layout helpers -------------------------------------- */
.container {
	max-width: 1160px;
	margin: 0 auto;
}

.section {
	padding: 60px 0;
}

/* ----- Buttons --------------------------------------------- */
.btn {
	display: inline-block;
	padding: 11px 26px;
	border-radius: 50px;
	border: none;
	background: #4e5da0;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.btn:hover {
	background: #3d4c8a;
	color: #fff;
}

.btn--outline {
	background: #4e5da0;
	color: #fff;
}

.btn--outline:hover {
	background: #3d4c8a;
	color: #fff;
}

.btn--white {
	background: rgba(255,255,255,0.18);
	color: #fff;
	border: 2px solid #fff;
}

.btn--white:hover {
	background: #fff;
	color: #4e5da0;
}

/* ----- Section title --------------------------------------- */
.section-title {
	font-family: 'Open Sans', Arial, sans-serif;
	font-style: normal;
	font-size: 32px;
	font-weight: 700;
	line-height: 109%;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: #4154A3;
}

.section-title--center {
	text-align: center;
	margin-bottom: 40px;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Грид: лого слева занимает оба ряда, справа — поиск/соцсети сверху, меню снизу */
.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
}

/* Logo — grid-row 1/3, выровнен по центру по вертикали */
.site-header__logo {
	grid-column: 1;
	grid-row: 1 / 3;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	padding-bottom: 5px;
	margin-right: 0;
}

/* Лого-картинка от the_custom_logo() */
.site-header__logo .custom-logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-header__logo .custom-logo {
	height: 92px !important;
	width: auto !important;
	display: block;
}

/* Текст названия */
.site-header__name-link {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-decoration: none;
}

.site-header__name-top {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--color-main-1);
	letter-spacing: 0.08em;
}

.site-header__name-bottom {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-main-1);
	letter-spacing: 0.08em;
}

/* Верхний ряд: поиск + соцсети */
.site-header__top-right {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	padding: 12px 0;
}

/* Search */
.site-header__search {
	display: flex;
	align-items: center;
	background: #f0f4fb;
	border-radius: 50px;
	overflow: hidden;
	border: 1px solid #dde6f5;
}

.site-header__search-input {
	background: transparent;
	border: none;
	outline: none;
	padding: 8px 16px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: #333;
	width: 180px;
}

.site-header__search-input::placeholder {
	color: #888;
}

.site-header__search-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px 12px;
	color: #555;
	display: flex;
	align-items: center;
	transition: color 0.2s;
}

.site-header__search-btn:hover {
	color: #1a5aa8;
}

/* Social icons */
.site-header__socials {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-header__social-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-main-2);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	flex-shrink: 0;
}

.site-header__social-btn:hover {
	background: var(--color-main-1);
}

/* ── Mobile nav search (hidden on desktop) ───────────────── */
.site-header__nav-search {
	display: none;
}

/* ── Burger button ───────────────────────────────────────── */
.site-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.site-header__burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-main-2);
	border-radius: 2px;
	transition: transform 0.25s, opacity 0.25s;
}

.site-header__burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header__burger.is-open span:nth-child(2) {
	opacity: 0;
}

.site-header__burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Nav bar ─────────────────────────────────────────────── */
.site-header__nav {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.primary-menu {
	display: flex;
	gap: 4px;
	align-items: center;
}

.primary-menu > li > a {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-main-2);
	text-transform: uppercase;
	padding: 14px 12px;
	position: relative;
	transition: color 0.2s;
	white-space: nowrap;
}

.primary-menu > li > a::after {
	content: '';
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 0;
	height: 2px;
	background: #1a5aa8;
	transform: scaleX(0);
	transition: transform 0.2s;
}

.primary-menu > li > a:hover {
	color: #1a5aa8;
}

.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after,
.primary-menu > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

/* Submenu dropdown */
.primary-menu li.menu-item-has-children {
	position: relative;
}

.primary-menu > li.menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.nav-chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.primary-menu > li.menu-item-has-children.is-open > a .nav-chevron {
	transform: rotate(180deg);
}

.primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	padding: 6px 0;
	min-width: 160px;
	z-index: 200;
	list-style: none;
}

.primary-menu li.menu-item-has-children:hover .sub-menu,
.primary-menu li.menu-item-has-children.is-open .sub-menu {
	display: block;
}

.primary-menu .sub-menu li a {
	display: block;
	padding: 8px 16px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: uppercase;
	color: var(--color-main-2);
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.primary-menu .sub-menu li a:hover {
	background: #f0f6fd;
	color: #1a5aa8;
}

.primary-menu .sub-menu li a::after {
	display: none;
}

/* Polylang flags in nav */
.primary-menu .pll-flag-logo,
.primary-menu .sub-menu img {
	height: 14px;
	width: auto;
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

.primary-menu li.pll-parent-menu-item > a::after {
	display: none;
}

/* ── RU labels are ~25-30% wider than EST — same look, ~12% smaller type to fit ── */
html[lang^="ru"] .primary-menu {
	gap: 2px;
}

html[lang^="ru"] .primary-menu > li > a {
	font-size: 0.66rem;
	padding: 14px 8px;
}

html[lang^="ru"] .primary-menu > li > a::after {
	left: 8px;
	right: 8px;
}


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

/* ============================================================
   HERO
   ============================================================ */
.hero {
	position: relative;
	width: 100%;
	height: 667px;
	background-color: #2c5f8a;
	background-image: linear-gradient(135deg, #1a3a5c 0%, #3a7fc1 60%, #6ab0e8 100%);
	background-size: cover;
	background-position: bottom;
	background-repeat: no-repeat;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(200, 210, 240, 0.45) 0%,
		rgba(200, 210, 240, 0.15) 50%,
		rgba(200, 210, 240, 0) 100%
	);
}

.hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 40px;
}

.hero__links {
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
}

.hero__link {
	display: block;
	padding: 15px 36px;
	background: var(--color-main-2);
	color: #fff;
	font-size: 1.17rem;
	font-weight: 400;
	border-radius: 6px;
	transition: background 0.2s;
	white-space: nowrap;
	text-align: center;
}

.hero__link:hover {
	background: #3d4585;
}

/* ============================================================
   LATEST POSTS
   ============================================================ */
.latest-posts {
	background: #bfd9ff;
	padding: 56px 0 64px;
	margin-top: 48px;
}

.posts-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.post-card {
	background: #fff;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 10px rgba(26,90,168,0.07);
	transition: box-shadow 0.2s, transform 0.2s;
	position: relative;
}

.post-card:hover {
	box-shadow: 0 6px 20px rgba(26,90,168,0.14);
	transform: translateY(-2px);
}

.post-card__image {
	width: calc(100% - 20px);
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #d0e4f5;
	margin: 10px;
	border-radius: 20px;
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}

.post-card__image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #c5daf0, #a8c8e8);
}

.post-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card__date {
	font-family: 'Open Sans', Arial, sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 18px;
	line-height: 135%;
	letter-spacing: -0.02em;
	color: #000000;
	margin-bottom: 6px;
	display: block;
}

.post-card__title-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	position: relative;
}

.post-card__title {
	font-family: 'Open Sans', Arial, sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 26px;
	line-height: 109%;
	letter-spacing: -0.05em;
	color: #4154A3;
	margin-bottom: 0;
	flex: 1;
}

.post-card__share {
	position: relative;
	flex-shrink: 0;
}

.post-type-archive-project .post-card__share {
	display: none;
}


.post-card__share-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .2s;
}

.post-card:hover .post-card__share-btn {
	opacity: 1;
}

.post-card__share-popup {
	display: none;
	position: absolute;
	right: 0;
	top: 28px;
	background: #fff;
	border: 1px solid #d0d8e8;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,.14);
	z-index: 100;
	min-width: 160px;
	overflow: hidden;
}

.post-card__share-popup.is-open {
	display: block;
}

.post-card__share-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	transition: background .15s;
	white-space: nowrap;
}

.post-card__share-link:hover {
	background: #f0f4fb;
	color: #4154A3;
}

.post-card__title a {
	color: #4154A3;
	text-decoration: none;
}

.post-card__title a:hover {
	color: #2d3d7a;
}

.post-card__excerpt {
	font-family: 'Open Sans', Arial, sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 18px;
	line-height: 135%;
	letter-spacing: -0.02em;
	color: #000000;
	flex: 1;
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__link {
	font-size: 0.8rem;
	font-weight: 600;
	color: #1a5aa8;
	margin-top: auto;
	transition: color 0.2s;
}

.post-card__link:hover {
	color: #0f3870;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
	background: var(--color-bg);
	padding-top: 64px;
	padding-bottom: 72px;
}

/* ── Projects carousel ─────────────────────────────────────── */
.carousel-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.carousel-btn {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #4b559d;
	color: #fff;
	border: none;
	font-size: 1.1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12);
	transition: background 0.2s, opacity 0.2s;
}

.carousel-btn:hover {
	background: #9caed4;
}

.carousel-btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.projects-carousel {
	overflow: hidden;
	flex: 1;
	min-width: 0;
	padding: 16px 0;
	margin: -16px 0;
}

.carousel-track {
	display: flex;
	transition: transform 0.45s ease;
	will-change: transform;
}

.carousel-track .project-card {
	flex-shrink: 0;
}

.project-card {
	background: #fff;
	border: none;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0px 4px 28.9px -5px rgba(65, 84, 163, 0.58);
	transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
	box-shadow: 0px 8px 36px -4px rgba(65, 84, 163, 0.72);
	transform: translateY(-2px);
}

.project-card__inner {
	padding: 24px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 189px;
	gap: 12px;
}

.project-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	padding: 0;
	margin: 0;
}

.project-card__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.project-card__logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.5;
}

.project-card__title {
	display: none;
}

.project-card__link {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-main-2);
	flex-shrink: 0;
	margin-top: auto;
	align-self: flex-end;
}

.project-card__link:hover {
	color: var(--color-main-1);
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
	background: #fff;
	padding: 64px 0 80px;
	border-top: 1.5px solid #e8f0fa;
}

/* ── Partners ticker ───────────────────────────────────────── */
.partners-ticker {
	overflow: hidden;
	width: 100%;
	margin-top: 32px;
}

.partners-ticker__track {
	display: flex;
	align-items: center;
	will-change: transform;
}

.partners-ticker .partner-item {
	flex-shrink: 0;
}

.partner-item {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 40px;
	flex-shrink: 0;
}

.partner-item__logo img {
	height: 100px;
	width: auto;
	object-fit: contain;
	filter: grayscale(20%);
	transition: filter 0.2s, opacity 0.2s;
	opacity: 0.85;
}

.partner-item:hover .partner-item__logo img {
	filter: grayscale(0%);
	opacity: 1;
}

.partner-item__logo-placeholder svg {
	display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	background: var(--color-bg);
	border-top: 3px solid var(--color-main-1);
	padding: 48px 0 40px;
	color: var(--color-main-2);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: auto 1fr 1fr 1.4fr;
	gap: 40px;
	align-items: start;
}

/* Лого */
.site-footer__col--logo {
	padding-right: 8px;
}

.site-footer__logo .custom-logo-link img,
.site-footer__logo .custom-logo {
	height: 100px !important;
	width: auto !important;
	display: block;
}

.site-footer__school-name {
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--color-main-1);
	letter-spacing: 0.1em;
}

/* Заголовки колонок */
.site-footer__col-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-main-2);
	margin-bottom: 4px;
}

/* Адрес */
.site-footer__address {
	font-size: 0.83rem;
	color: var(--color-main-2);
	line-height: 1.9;
	font-style: normal;
}

.site-footer__address a {
	color: var(--color-main-2);
	transition: color 0.2s;
}

.site-footer__address a:hover {
	color: var(--color-main-1);
}

/* Меню */
.footer-menu {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footer-menu li a {
	font-size: 0.85rem;
	color: var(--color-main-2);
	transition: color 0.2s;
}

.footer-menu li a:hover {
	color: var(--color-main-1);
}

/* Карта */
.site-footer__map {
	width: 100%;
	height: 200px;
	border: none;
	border-radius: 8px;
	display: block;
}

.site-footer__map-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--color-main-2);
	transition: color 0.2s;
}

.site-footer__map-link:hover {
	color: var(--color-main-1);
}

/* ============================================================
   GENERAL CONTENT TEMPLATES
   ============================================================ */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* ----- Page header banner ---------------------------------- */
.page-header {
	background: #e4eefd;
	padding: 44px 0;
}

.page-header__title {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 60px;
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: #4154a3;
	margin: 0;
}

@media (max-width: 900px) {
	.page-header__title {
		font-size: 42px;
	}
}

@media (max-width: 600px) {
	.page-header {
		margin-bottom: 20px;
	}
	.page-header__title {
		font-size: 32px;
	}
}

.page-content__body,
.single-post__content {
	font-family: 'Open Sans', sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #000;
}

.single-post__thumbnail {
	margin-bottom: 28px;
	border-radius: 6px;
	overflow: hidden;
}

.single-post__date {
	font-size: 0.8rem;
	color: #888;
	display: block;
	margin-bottom: 8px;
}

.single-post__share {
	display: flex;
	flex-direction: row;
	gap: 16px;
	align-items: center;
	margin-top: 32px;
}

.single-post__share-link {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: .75;
	transition: opacity .15s;
}

.single-post__share-link:hover {
	opacity: 1;
}

.single-post__footer {
	margin-top: 24px;
}

/* ----- Koolivaheajad --------------------------------------- */
.koolivaheajad {
	margin-bottom: 48px;
}

.koolivaheajad__title {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.09;
	letter-spacing: -0.05em;
	color: #000;
	margin: 0 0 24px;
}

.koolivaheajad__list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-top: 1px solid #91aed8;
}

.koolivaheajad__item {
	height: 61px;
	padding: 18px 20px 0 0;
	box-sizing: border-box;
	border-bottom: 1px solid #91aed8;
	font-family: 'Open Sans', sans-serif;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #000;
}

.koolivaheajad__item:nth-child(odd) {
	background: rgba(237, 242, 248, 0.5);
}

.koolivaheajad__item:nth-child(even) {
	background: #fff;
}

@media (max-width: 1035px) {
	.koolivaheajad__title {
		margin-top: 32px;
	}
}

@media (max-width: 600px) {
	.koolivaheajad__title {
		font-size: 18px;
	}

	.koolivaheajad__item {
		height: auto;
		padding: 14px 16px 14px 20px;
		font-size: 15px;
	}
}

/* ----- Vacancies ------------------------------------------- */
.vacancy-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.vacancy {
	padding: 48px 0;
}

.vacancy__divider {
	border: none;
	border-top: 1px solid #d8e3f4;
	margin: 0;
}

.vacancy__image {
	margin-bottom: 28px;
}

.vacancy__image img {
	width: 100%;
	height: auto;
	display: block;
}

.vacancy__title {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.09;
	letter-spacing: -0.05em;
	color: #000;
	margin: 0 0 16px;
}

.vacancy__content,
.vacancy__content p,
.vacancy__content li,
.vacancy__content a {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #000;
}

.vacancy__content p {
	margin: 0;
}

.vacancy__content p + p {
	margin-top: 10px;
}

/* ----- Staff accordion ------------------------------------- */
.staff-accordion {
}

.staff-accordion__item {
	border-bottom: 1px solid #4154a3;
}

.staff-accordion__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
}

.staff-accordion__label {
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: 1.09;
	letter-spacing: -0.05em;
	color: #4154a3;
}

.staff-accordion__icon {
	font-size: 22px;
	color: #4154a3;
	line-height: 1;
	font-weight: 400;
	flex-shrink: 0;
	margin-left: 16px;
}

.staff-accordion__body {
	padding-bottom: 32px;
}

/* 4-column grid — rows always stay aligned */
.staff-cols {
	display: grid;
	grid-template-columns: 300px 200px 140px 1fr;
	column-gap: 40px;
	row-gap: 18px;
	align-items: baseline;
}

/* transparent wrapper — lets spans sit directly in the parent grid */
.staff-row {
	display: contents;
}

.staff-cols span {
	font-family: 'Open Sans', sans-serif;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #000;
}

.staff-col--pos { font-weight: 600; }

.staff-col--name,
.staff-col--phone,
.staff-col--email { font-weight: 400; }

.staff-col--email a {
	color: #000;
	text-decoration: none;
}

.staff-col--email a:hover {
	text-decoration: underline;
}

@media (max-width: 1100px) {
	.staff-cols {
		grid-template-columns: 240px 180px 120px 1fr;
		column-gap: 24px;
	}
	.staff-cols span {
		font-size: 15px;
	}
	.staff-accordion__label {
		font-size: 24px;
	}
}

@media (max-width: 840px) {
	.staff-cols {
		grid-template-columns: 1fr;
		row-gap: 16px;
	}
	.staff-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto auto;
		column-gap: 16px;
		row-gap: 2px;
		align-items: start;
	}
	.staff-col--pos {
		grid-column: 1;
		grid-row: 1 / 4;
		align-self: start;
	}
	.staff-col--name  { grid-column: 2; grid-row: 1; }
	.staff-col--phone { grid-column: 2; grid-row: 2; }
	.staff-col--email { grid-column: 2; grid-row: 3; }
	.staff-cols span {
		font-size: 14px;
	}
	.staff-accordion__label {
		font-size: 22px;
	}
}

@media (max-width: 600px) {
	.staff-cols {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.staff-row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.staff-cols span {
		font-size: 18px;
		line-height: 135%;
		letter-spacing: -0.02em;
	}

	.staff-col--pos {
		font-weight: 600;
		margin-bottom: 5px;
	}

	.staff-col--name,
	.staff-col--phone,
	.staff-col--email {
		font-weight: 400;
	}

	.staff-accordion__label {
		font-size: 20px;
	}
}

/* ============================================================
   RESPONSIVE — narrow desktop (≤1115px, non-RU)
   ============================================================ */
@media (max-width: 1115px) {
	.site-header__logo {
		padding-right: 16px;
	}

	html:not([lang^="ru"]) .primary-menu > li > a {
		font-size: 0.68rem;
		padding: 14px 7px;
		letter-spacing: 0.04em;
	}

	html:not([lang^="ru"]) .primary-menu > li > a::after {
		left: 7px;
		right: 7px;
	}
}

/* ============================================================
   RESPONSIVE — narrow desktop, RU (≤1170px — RU labels are longer,
   so the compact menu style kicks in earlier)
   ============================================================ */
@media (max-width: 1170px) {
	html[lang^="ru"] .primary-menu > li > a {
		font-size: 0.6rem;
		padding: 14px 5px;
		letter-spacing: 0.04em;
	}

	html[lang^="ru"] .primary-menu > li > a::after {
		left: 5px;
		right: 5px;
	}
}

/* ============================================================
   RESPONSIVE — tablet (≤1035px)
   ============================================================ */
@media (max-width: 1035px) {
	.container {
		padding: 0 24px;
	}

	.hero__inner {
		padding-top: 72px;
	}

	.posts-row,
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__col--map {
		grid-column: 1 / -1;
	}

	.site-footer__map {
		height: 180px;
	}
}

/* ── Burger / mobile nav — non-RU (≤1035px) ─────────────────── */
@media (max-width: 1035px) {
	html:not([lang^="ru"]) .site-header__burger {
		display: flex;
	}

	html:not([lang^="ru"]) .site-header__nav {
		display: none;
	}

	html:not([lang^="ru"]) .site-header__nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-top: 1px solid #edf2fb;
		box-shadow: 0 8px 24px rgba(0,0,0,0.1);
		padding: 8px 0 16px;
		z-index: 99;
	}

	html:not([lang^="ru"]) .site-header__nav.is-open .primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0 24px;
	}

	html:not([lang^="ru"]) .site-header__nav.is-open .primary-menu > li > a {
		padding: 12px;
		min-height: 48px;
		border-bottom: 1px solid #edf2fb;
		white-space: normal;
		font-size: 18px;
		font-weight: 600;
		letter-spacing: -0.02em;
		text-transform: none;
	}

	html:not([lang^="ru"]) .site-header__nav.is-open .primary-menu > li:last-child > a {
		border-bottom: none;
	}

	html:not([lang^="ru"]) .site-header__nav.is-open .primary-menu .sub-menu {
		position: static;
		box-shadow: none;
		border-radius: 0;
		padding: 0 0 4px 16px;
	}

	html:not([lang^="ru"]) .site-header__nav.is-open .primary-menu .sub-menu li a {
		text-transform: none;
		font-size: 18px;
		font-weight: 600;
		line-height: 135%;
		letter-spacing: -0.02em;
		color: #4154A3;
	}

	html:not([lang^="ru"]) .site-header__nav.is-open .site-header__nav-search {
		display: flex;
		align-items: center;
		margin: 8px 24px 8px;
		border-top: 1px solid #edf2fb;
		padding-top: 12px;
	}

	html:not([lang^="ru"]) .site-header__nav-search-input {
		flex: 1;
		background: none;
		border: none;
		outline: none;
		font-size: 0.85rem;
		color: #333;
		padding: 6px 4px;
	}

	html:not([lang^="ru"]) .site-header__nav-search-input::placeholder {
		color: #aaa;
	}

	html:not([lang^="ru"]) .site-header__nav-search-btn {
		background: none;
		border: none;
		cursor: pointer;
		color: #888;
		display: flex;
		align-items: center;
		padding: 4px;
	}

	html:not([lang^="ru"]) .site-header__search-input {
		width: 120px;
	}
}

/* ── Burger / mobile nav — RU (≤1100px, matches the earlier
   compact-menu breakpoint so the header row doesn't overflow) ── */
@media (max-width: 1100px) {
	html[lang^="ru"] .site-header__burger {
		display: flex;
	}

	html[lang^="ru"] .site-header__nav {
		display: none;
	}

	html[lang^="ru"] .site-header__nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-top: 1px solid #edf2fb;
		box-shadow: 0 8px 24px rgba(0,0,0,0.1);
		padding: 8px 0 16px;
		z-index: 99;
	}

	html[lang^="ru"] .site-header__nav.is-open .primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0 24px;
	}

	html[lang^="ru"] .site-header__nav.is-open .primary-menu > li > a {
		padding: 12px;
		min-height: 48px;
		border-bottom: 1px solid #edf2fb;
		white-space: normal;
		font-size: 18px;
		font-weight: 600;
		letter-spacing: -0.02em;
		text-transform: none;
	}

	html[lang^="ru"] .site-header__nav.is-open .primary-menu > li:last-child > a {
		border-bottom: none;
	}

	html[lang^="ru"] .site-header__nav.is-open .primary-menu .sub-menu {
		position: static;
		box-shadow: none;
		border-radius: 0;
		padding: 0 0 4px 16px;
	}

	html[lang^="ru"] .site-header__nav.is-open .primary-menu .sub-menu li a {
		text-transform: none;
		font-size: 18px;
		font-weight: 600;
		line-height: 135%;
		letter-spacing: -0.02em;
		color: #4154A3;
	}

	html[lang^="ru"] .site-header__nav.is-open .site-header__nav-search {
		display: flex;
		align-items: center;
		margin: 8px 24px 8px;
		border-top: 1px solid #edf2fb;
		padding-top: 12px;
	}

	html[lang^="ru"] .site-header__nav-search-input {
		flex: 1;
		background: none;
		border: none;
		outline: none;
		font-size: 0.85rem;
		color: #333;
		padding: 6px 4px;
	}

	html[lang^="ru"] .site-header__nav-search-input::placeholder {
		color: #aaa;
	}

	html[lang^="ru"] .site-header__nav-search-btn {
		background: none;
		border: none;
		cursor: pointer;
		color: #888;
		display: flex;
		align-items: center;
		padding: 4px;
	}

	html[lang^="ru"] .site-header__search-input {
		width: 120px;
	}
}

@media (max-width: 750px) {
	.site-header__search {
		display: none;
	}
}

/* ============================================================
   RESPONSIVE — mobile (≤600px)
   ============================================================ */
@media (max-width: 600px) {
	.container {
		padding: 0 16px;
	}

	/* Header */
	.site-header__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 0;
		gap: 8px;
	}

	.site-header__logo {
		grid-row: auto;
		padding-right: 0;
		padding-bottom: 0;
	}

	.site-header__logo .custom-logo {
		height: 50px !important;
	}

	.site-header__top-right {
		grid-row: auto;
		padding: 0;
	}

	.site-header__socials {
		display: flex;
		gap: 6px;
	}

	.site-header__name-top {
		font-size: 1rem;
	}

	.site-header__name-bottom {
		font-size: 0.7rem;
	}



	.site-header__social-btn {
		width: 28px;
		height: 28px;
	}

	.site-header__social-btn svg {
		width: 13px;
		height: 13px;
	}

	/* Hero */
	.hero {
		height: 280px;
	}

	.hero__inner {
		padding-top: 32px;
	}

	.hero__link {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		width: 165px;
		height: 46px;
		padding: 16px 8px;
		background: #4154A3;
		border-radius: 8px;
		font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
		font-size: 18px;
		font-weight: 500;
		line-height: 1.35;
		letter-spacing: -0.02em;
		color: #fff;
		white-space: nowrap;
		box-sizing: border-box;
	}

	html[lang^="ru"] .hero__link {
		font-size: 15px;
	}

	/* Sections */
	.section-title {
		font-size: 1.1rem;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.posts-row,
	.posts-grid {
		grid-template-columns: 1fr;
	}

	.latest-posts {
		padding: 36px 0 44px;
	}

	.projects {
		padding-top: 48px;
		padding-bottom: 44px;
	}

	.carousel-btn {
		width: auto;
		height: auto;
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		padding: 4px;
		font-size: 0;
	}

	.carousel-btn:hover {
		background: transparent;
	}

	.carousel-btn svg {
		width: 20px;
		height: 20px;
	}

	/* Footer */
	.site-footer__inner {
		grid-template-columns: 1fr auto;
		grid-template-rows: auto auto auto;
		gap: 0 16px;
	}

	.site-footer__col--logo {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
		padding-right: 0;
	}

	.site-footer__col--logo .custom-logo {
		height: 72px !important;
	}

	.site-footer__col--info {
		grid-column: 1;
		grid-row: 1;
	}

	.site-footer__col--menu {
		grid-column: 1 / -1;
		grid-row: 2;
		margin-top: 20px;
	}

	.site-footer__col--map {
		grid-column: 1 / -1;
		grid-row: 3;
		margin-top: 8px;
	}

	.site-footer__map {
		height: 230px;
	}
}

/* ----- Archive toolbar (category filter + sort) ------------ */
.archive-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 32px;
}

.filter-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 1;
}

.sort-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

.sort-btns--centered {
	justify-content: center;
	flex-shrink: unset;
	width: 100%;
	margin-bottom: 32px;
}

.sort-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 32px;
	border-radius: 13px;
	font-family: 'Open Sans', Arial, sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.09;
	letter-spacing: -0.05em;
	color: #4154A3;
	background: transparent;
	border: 2px solid #4154A3;
	transition: background 0.18s, color 0.18s, border-color 0.18s;
	white-space: nowrap;
	cursor: pointer;
}

.sort-btn--active,
.sort-btn:hover {
	background: #4154A3;
	color: #fff;
	border-color: #4154A3;
}

@media (max-width: 900px) {
	.archive-toolbar {
		flex-direction: column;
	}

	.sort-btns {
		flex-shrink: unset;
	}
}

@media (max-width: 600px) {
	.sort-btn {
		font-size: 15px;
		padding: 11px 22px;
	}

	.single-post__footer {
		margin-bottom: 40px;
	}

	.post-type-archive-project .section {
		padding-bottom: 20px;
	}
}
