/* ===========================================================
   Балбөбек — основные стили
   Палитра под логотип: navy / синий / голубой / белый
   =========================================================== */

:root {
	--navy: #14225c;
	--navy-700: #1c2b6b;
	--blue: #2f4cad;
	--blue-500: #3a64d8;
	--blue-300: #7d9bf0;
	--sky: #eaf0ff;
	--sky-200: #d9e4ff;
	--white: #ffffff;
	--ink: #1d2333;
	--muted: #5b647d;
	--line: #e3e8f5;
	--accent: #ffb020; /* тёплый акцент из логотипа (солнце) */
	--accent-600: #f59e0b;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 2px 10px rgba(20, 34, 92, .06);
	--shadow: 0 14px 40px rgba(20, 34, 92, .12);
	--container: 1180px;

	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Montserrat", var(--font);
}

/* --- reset / base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--white);
	line-height: 1.65;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 1000; }

/* --- buttons --- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-head); font-weight: 700; font-size: 15px;
	padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--accent-600); color: var(--navy); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn:not(.btn--accent):not(.btn--outline) { background: var(--blue); color: #fff; }
.btn:not(.btn--accent):not(.btn--outline):hover { background: var(--navy); color: #fff; }

/* --- header --- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand__logo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.site-brand__text { display: flex; flex-direction: column; }
.site-brand__name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 18px; line-height: 1.1; }
.site-brand__tagline { font-size: 12px; color: var(--muted); }

.site-nav__list { display: flex; align-items: center; gap: 6px; list-style: none; }
.site-nav__list a {
	display: block; padding: 10px 16px; border-radius: 999px;
	font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy);
}
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { background: var(--sky); color: var(--blue); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- hero --- */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video, .hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,34,92,.85) 0%, rgba(28,43,107,.65) 45%, rgba(47,76,173,.45) 100%); }
.hero__content { position: relative; z-index: 1; padding: 80px 24px; max-width: 760px; }
.hero__title { color: #fff; font-size: clamp(32px, 5vw, 56px); margin-bottom: .35em; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.hero__subtitle { font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.92); margin-bottom: 1.6em; max-width: 600px; }
.hero__btn { font-size: 16px; }

/* --- sections --- */
.section { padding: 80px 0; }
.section--alt { background: var(--sky); }
.section--center { text-align: center; }
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.section-title--sm { font-size: clamp(20px, 2.4vw, 26px); }
.content-narrow { max-width: 820px; }
.lead { font-size: 19px; color: var(--muted); }

/* --- stats --- */
.stats { margin-top: -56px; position: relative; z-index: 2; }
.stats__grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 28px;
}
.stats__item { text-align: center; }
.stats__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 44px); color: var(--blue); line-height: 1; }
.stats__label { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

/* --- about block --- */
.about-block__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-block__copy { color: var(--muted); margin-bottom: 1.6em; }
.about-block__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-block__badge {
	display: grid; place-items: center; aspect-ratio: 4/3;
	background: radial-gradient(circle at 30% 25%, var(--sky) 0%, var(--sky-200) 60%, #cdd9fb 100%);
	border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-block__badge img { width: 46%; max-width: 220px; border-radius: 50%; box-shadow: 0 12px 30px rgba(20,34,92,.18); }

/* --- features --- */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 34px 28px; transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card__icon {
	width: 60px; height: 60px; border-radius: 16px; background: var(--sky); color: var(--blue);
	display: grid; place-items: center; margin-bottom: 18px;
}
.feature-card__icon svg { width: 30px; height: 30px; }
.feature-card__title { font-size: 20px; margin-bottom: 8px; }
.feature-card__text { color: var(--muted); margin: 0; font-size: 16px; }

/* --- news --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--sky); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sky-200), var(--blue-300)); }
.news-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 13px; color: var(--blue); font-weight: 600; }
.news-card__title { font-size: 19px; margin: 8px 0 10px; }
.news-card__title a { color: var(--navy); }
.news-card__excerpt { color: var(--muted); font-size: 15px; flex: 1; }
.news-card__more { margin-top: 14px; font-weight: 700; font-family: var(--font-head); font-size: 14px; }

/* --- instagram --- */
.instagram-block { padding: 80px 0; background: var(--sky); }
.instagram-block__feed { margin-bottom: 32px; }
.instagram-block__cta { text-align: center; }

/* --- documents --- */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.doc-card {
	display: flex; align-items: flex-start; gap: 18px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
	transition: box-shadow .25s, border-color .25s;
}
.doc-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.doc-card__ext {
	flex: none; width: 56px; height: 64px; border-radius: 10px;
	background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 13px;
	display: grid; place-items: center; position: relative;
}
.doc-card__ext::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 14px 14px 0; border-style: solid; border-color: var(--blue-500) #fff; border-radius: 0 0 0 4px; }
.doc-card__body { flex: 1; min-width: 0; }
.doc-card__title { font-size: 18px; margin: 0 0 6px; }
.doc-card__desc { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.doc-card__date { font-size: 13px; color: var(--blue); font-weight: 600; }
.doc-card__actions { display: flex; flex-direction: column; gap: 8px; flex: none; }

/* --- page hero / breadcrumbs --- */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 54px 0; }
.page-hero__title { color: #fff; font-size: clamp(28px, 4vw, 42px); margin: 0; }
.page-hero__lead { color: rgba(255,255,255,.9); max-width: 720px; margin-top: 12px; }
.breadcrumbs { display: flex; gap: 8px; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.breadcrumbs a { color: rgba(255,255,255,.9); }
.breadcrumbs a:hover { color: #fff; }

/* --- entry content --- */
.entry-content { font-size: 17px; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content h3 { margin-top: 1.2em; }
.entry-content img { border-radius: var(--radius-sm); margin: 1em 0; }
.entry-content ul, .entry-content ol { margin: 0 0 1em 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { text-decoration: underline; }

.callout { background: var(--sky); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 24px 28px; margin: 32px 0; }
.callout__text { margin: 0; }
.video-wrap { margin: 32px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-wrap video { width: 100%; display: block; }

.post-meta { color: var(--blue); font-weight: 600; font-size: 14px; }
.post-cover { margin: 16px 0 28px; border-radius: var(--radius); overflow: hidden; }
.back-link { margin-top: 36px; font-weight: 600; }
.doc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* --- contacts --- */
.contacts-strip { padding: 80px 0; background: var(--sky); }
.contacts-strip__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contacts-list { list-style: none; }
.contacts-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contacts-list--lg li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
.contacts-list__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contacts-strip__map iframe, .contacts-page__map iframe { width: 100%; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.contacts-page { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }

/* --- pagination --- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--navy);
}
.pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* --- 404 --- */
.error-404__code { font-size: clamp(70px, 14vw, 140px); color: var(--blue); margin: 0; }
.error-404__text { font-size: 20px; color: var(--muted); margin-bottom: 28px; }

/* --- footer --- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 64px 24px 48px; }
.site-brand--footer .site-brand__name { color: #fff; }
.site-footer__tagline { color: rgba(255,255,255,.7); margin-top: 14px; max-width: 320px; }
.site-footer__title { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer__menu, .site-footer__contacts { list-style: none; }
.site-footer__menu li, .site-footer__contacts li { margin-bottom: 10px; }
.site-footer__menu a, .site-footer__contacts a { color: rgba(255,255,255,.82); }
.site-footer__menu a:hover, .site-footer__contacts a:hover { color: #fff; }
.site-footer__social { display: flex; gap: 16px; margin-top: 18px; }
.site-footer__social a { color: var(--accent); font-weight: 600; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bottom p { margin: 0; padding: 22px 0; font-size: 14px; color: rgba(255,255,255,.6); text-align: center; }

/* --- search form --- */
.search-form { display: flex; gap: 8px; }
.search-form__field { flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }

/* ===========================================================
   Адаптив
   =========================================================== */
@media (max-width: 1024px) {
	.about-block__inner { grid-template-columns: 1fr; gap: 32px; }
	.contacts-page { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.site-nav {
		position: fixed; inset: 76px 0 auto 0; background: #fff;
		border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		transform: translateY(-120%); transition: transform .3s; max-height: calc(100vh - 76px); overflow-y: auto;
	}
	.site-nav.is-open { transform: translateY(0); }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px; }
	.site-nav__list a { padding: 14px 16px; border-radius: 10px; }
	.features__grid, .news-grid { grid-template-columns: 1fr 1fr; }
	.stats__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.contacts-strip__inner { grid-template-columns: 1fr; gap: 28px; }
	.doc-grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.section { padding: 56px 0; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.features__grid, .news-grid { grid-template-columns: 1fr; }
	.stats { margin-top: -36px; }
	.stats__grid { grid-template-columns: 1fr 1fr; padding: 24px 18px; }
	.site-brand__tagline { display: none; }
	.doc-card { flex-wrap: wrap; }
	.doc-card__actions { flex-direction: row; width: 100%; }
	.hero { min-height: 520px; }
}
