/*
Theme Name: Mektep 144
Theme URI: https://mektep144.edu.kz/
Author: №144 орта мектеп
Author URI: https://mektep144.edu.kz/
Description: Сдержанная современная тема WordPress для государственного общеобразовательного учреждения. Строгая типографика, синяя государственная палитра, адаптивная вёрстка. Совместима со стандартными меню, виджетами и записями WordPress — всё содержимое сайта сохраняется.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
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: mektep144
Tags: education, school, government, blue, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, responsive
*/

/* =========================================================================
   1. ДИЗАЙН-ТОКЕНЫ (переменные)
   ========================================================================= */
:root {
  /* Государственная синяя палитра — сдержанная */
  --c-ink:        #0a2740;  /* самый тёмный — верхняя панель, футер */
  --c-navy:       #103d68;  /* основной тёмно-синий */
  --c-navy-2:     #14487f;  /* наведение на тёмном */
  --c-blue:       #1a5aa8;  /* основной синий — кнопки, ссылки */
  --c-blue-600:   #16508f;
  --c-blue-hover: #124479;
  --c-sky:        #3a86c8;  /* акцентный светло-синий */
  --c-sky-tint:   #eaf2fb;  /* светлая заливка */
  --c-sky-tint-2: #f2f7fc;
  --c-gold:       #d3a029;  /* золотой акцент — очень дозированно */
  --c-gold-soft:  #e7c977;

  /* Нейтральные */
  --c-bg:         #f4f6f9;
  --c-surface:    #ffffff;
  --c-surface-2:  #fafbfd;
  --c-border:     #e2e8f0;
  --c-border-2:   #eef1f5;
  --c-text:       #17293a;
  --c-text-soft:  #3c4c5b;
  --c-muted:      #61707e;
  --c-white:      #ffffff;

  /* Типографика */
  --font-base: "Inter", "Segoe UI", "PT Sans", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  --fs-root: 16px;
  --lh-base: 1.65;

  /* Пространство */
  --gutter: 20px;
  --wrap: 1200px;
  --wrap-narrow: 900px;

  /* Радиусы и тени */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16, 42, 67, .06), 0 1px 3px rgba(16, 42, 67, .08);
  --shadow-2: 0 4px 14px rgba(16, 42, 67, .08);
  --shadow-3: 0 10px 30px rgba(16, 42, 67, .12);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================================
   2. СБРОС И БАЗА
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--fs-root); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Строчные иконки (вывод функции mektep144_icon) — единый размер */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; flex: none; }

a { color: var(--c-blue); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--c-blue-hover); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(58, 134, 200, .5);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--c-navy);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.45rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
blockquote {
  margin: 1.4em 0;
  padding: .6em 1.2em;
  border-left: 4px solid var(--c-sky);
  background: var(--c-sky-tint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-text-soft);
  font-style: italic;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: .95rem; }
th, td { padding: .7em .9em; border: 1px solid var(--c-border); text-align: left; }
th { background: var(--c-sky-tint); color: var(--c-navy); font-weight: 700; }

/* =========================================================================
   3. РАСКЛАДКА / КОНТЕЙНЕРЫ
   ========================================================================= */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.section--tint { background: var(--c-sky-tint-2); }
.section--navy { background: var(--c-navy); color: #dbe7f3; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }

/* =========================================================================
   4. КНОПКИ
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .8em 1.4em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn--primary { background: var(--c-blue); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--c-blue-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--outline { background: #fff; color: var(--c-blue); border-color: var(--c-border); }
.btn--outline:hover { border-color: var(--c-blue); color: var(--c-blue-hover); box-shadow: var(--shadow-1); }
.btn--sm { padding: .55em 1em; font-size: .85rem; }

/* =========================================================================
   5. ШАПКА
   ========================================================================= */
.site-header { position: relative; z-index: 60; }

/* 5.1 Верхняя утилитарная панель */
.topbar {
  background: var(--c-ink);
  color: #a9c1d8;
  font-size: .82rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar__group { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.topbar a { color: #c3d5e6; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; }
.topbar__ico { width: 15px; height: 15px; flex: none; opacity: .85; }
.lang-switch { display: inline-flex; gap: .3rem; align-items: center; }
.lang-switch a { padding: .1em .45em; border-radius: var(--r-sm); font-weight: 600; }
.lang-switch a.is-active { background: rgba(255,255,255,.14); color: #fff; }
.social-mini { display: inline-flex; gap: .5rem; }
.social-mini a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
}
.social-mini a:hover { background: var(--c-blue); }
.social-mini svg { width: 15px; height: 15px; fill: currentColor; }

/* 5.2 Идентификация */
.identity { background: var(--c-surface); border-bottom: 1px solid var(--c-border-2); }
.identity__inner { display: flex; align-items: center; gap: 1.1rem; min-height: 92px; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; margin-right: auto; }
.brand__emblem { width: 56px; height: 56px; flex: none; }
.brand__emblem img, .brand__emblem svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--c-navy);
  letter-spacing: -.01em;
  max-width: 30ch;
}
.brand__tagline { font-size: .8rem; color: var(--c-muted); font-weight: 500; margin-top: 2px; }

.identity__actions { display: flex; align-items: center; gap: .8rem; }

/* Поиск в шапке */
.header-search { position: relative; }
.header-search input {
  width: 210px;
  padding: .6em 2.4em .6em 1em;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-family: inherit;
  background: var(--c-surface-2);
  transition: border-color .18s, box-shadow .18s;
}
.header-search input:focus { border-color: var(--c-sky); background: #fff; box-shadow: 0 0 0 3px rgba(58,134,200,.14); outline: none; }
.header-search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer;
  color: var(--c-muted); display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.header-search button:hover { color: var(--c-blue); }
.header-search svg { width: 17px; height: 17px; }

/* 5.3 Основная навигация (синяя лента) */
.primary-nav { background: var(--c-navy); position: relative; z-index: 55; }
.primary-nav.is-stuck { position: sticky; top: 0; box-shadow: var(--shadow-2); }
.nav-inner { display: flex; align-items: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: .35em;
  color: #dce7f2;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  padding: 1.05em .95em;
  position: relative;
  white-space: nowrap;
}
.menu > li > a::after {
  content: ""; position: absolute; left: .95em; right: .95em; bottom: .55em;
  height: 2.5px; background: var(--c-gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.menu > li:hover > a, .menu > li:focus-within > a { color: #fff; background: rgba(255,255,255,.06); }
.menu > li:hover > a::after,
.menu > li.current-menu-item > a::after,
.menu > li.current_page_item > a::after,
.menu > li.current-menu-parent > a::after { transform: scaleX(1); }
.menu > li.current-menu-item > a,
.menu > li.current_page_item > a { color: #fff; }

/* Стрелка у пунктов с подменю */
.menu-item-has-children > a > .caret,
.menu-item-has-children > a::before { }
.menu-item-has-children > a .caret { width: 9px; height: 9px; opacity: .8; }

/* Выпадающие подменю */
.menu ul.sub-menu {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--c-border);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s var(--ease);
  z-index: 70;
}
.menu li:hover > ul.sub-menu,
.menu li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu ul.sub-menu li { margin: 0; }
.menu ul.sub-menu a {
  display: block; padding: .6em .8em; color: var(--c-text-soft);
  font-size: .9rem; font-weight: 500; border-radius: var(--r-sm);
}
.menu ul.sub-menu a:hover { background: var(--c-sky-tint); color: var(--c-navy); }
.menu ul.sub-menu ul.sub-menu { top: -.4rem; left: 100%; }

/* Кнопка раскрытия подменю (только для мобильных; на десктопе скрыта) */
.submenu-toggle { display: none; }

/* Кнопка мобильного меню */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 0; cursor: pointer;
  color: #fff; padding: .9em 1em; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.nav-toggle .bars { width: 22px; height: 16px; position: relative; display: inline-block; }
.nav-toggle .bars span { position: absolute; left: 0; height: 2.5px; width: 100%; background: #fff; border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }
.nav-open .nav-toggle .bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* =========================================================================
   6. ХЛЕБНЫЕ КРОШКИ / БАННЕР СТРАНИЦЫ
   ========================================================================= */
.page-hero {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-blue-600) 60%, var(--c-sky) 130%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% -20%, rgba(255,255,255,.14), transparent 45%);
  pointer-events: none;
}
.page-hero__inner { padding-block: clamp(1.8rem, 1.2rem + 2.5vw, 3rem); position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.breadcrumbs { font-size: .85rem; color: #b7ccdf; display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.breadcrumbs a { color: #d7e5f2; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: .55; }

/* =========================================================================
   7. ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================================================= */
.hero {
  position: relative;
  background: linear-gradient(115deg, var(--c-ink) 0%, var(--c-navy) 55%, var(--c-blue-600) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(58,134,200,.35), transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(211,160,41,.14), transparent 40%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; padding-block: clamp(2.6rem, 1.8rem + 4vw, 5rem); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-gold-soft);
  padding: .4em .9em; border: 1px solid rgba(231,201,119,.35); border-radius: var(--r-pill);
  margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); margin-bottom: .7rem; }
.hero p.lead { color: #cddcec; font-size: 1.08rem; max-width: 46ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  backdrop-filter: blur(4px);
}
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1rem .6rem; background: rgba(255,255,255,.06); border-radius: var(--r-md); }
.stat__num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.stat__label { font-size: .8rem; color: #b9cce0; margin-top: .35rem; }

/* =========================================================================
   8. БЛОК БЫСТРЫХ ССЫЛОК
   ========================================================================= */
.quicklinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.qcard {
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 1.3rem 1.2rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  position: relative;
}
.qcard::before { content: ""; position: absolute; left: 0; top: 1.3rem; bottom: 1.3rem; width: 3px; border-radius: 3px; background: var(--c-sky); opacity: 0; transition: opacity .2s; }
.qcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.qcard:hover::before { opacity: 1; }
.qcard__ico { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--c-sky-tint); color: var(--c-blue); display: flex; align-items: center; justify-content: center; }
.qcard__ico svg { width: 24px; height: 24px; }
.qcard__title { font-family: var(--font-head); font-weight: 700; color: var(--c-navy); font-size: 1.02rem; }
.qcard__desc { font-size: .86rem; color: var(--c-muted); margin: 0; }

/* =========================================================================
   9. ЗАГОЛОВКИ СЕКЦИЙ
   ========================================================================= */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.sec-head__title { position: relative; margin: 0; padding-left: .9rem; }
.sec-head__title::before { content: ""; position: absolute; left: 0; top: .1em; bottom: .1em; width: 4px; border-radius: 4px; background: linear-gradient(var(--c-blue), var(--c-sky)); }
.sec-head__sub { color: var(--c-muted); font-size: .92rem; margin: .3rem 0 0; }

/* =========================================================================
   10. КАРТОЧКИ НОВОСТЕЙ
   ========================================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ncard {
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.ncard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-sky-tint); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__cat {
  position: absolute; left: 12px; top: 12px;
  background: rgba(10,39,64,.85); color: #fff;
  font-size: .72rem; font-weight: 600; font-family: var(--font-head);
  padding: .3em .7em; border-radius: var(--r-pill); backdrop-filter: blur(3px);
}
.ncard__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.ncard__date { font-size: .78rem; color: var(--c-muted); display: inline-flex; align-items: center; gap: .4em; margin-bottom: .5rem; }
.ncard__date svg { width: 14px; height: 14px; }
.ncard__title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 0 0 .5rem; }
.ncard__title a { color: var(--c-navy); }
.ncard__title a:hover { color: var(--c-blue); }
.ncard__excerpt { font-size: .88rem; color: var(--c-text-soft); margin: 0 0 1rem; }
.ncard__more { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--c-blue); display: inline-flex; align-items: center; gap: .35em; }
.ncard__more svg { width: 15px; height: 15px; transition: transform .2s; }
.ncard:hover .ncard__more svg { transform: translateX(3px); }

/* Компактный список новостей */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { margin: 0; border-bottom: 1px dashed var(--c-border); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { display: flex; gap: .9rem; padding: .75rem 0; align-items: baseline; color: var(--c-text); }
.news-list a:hover { color: var(--c-blue); }
.news-list .nl-date { flex: none; font-size: .75rem; color: var(--c-muted); font-weight: 600; font-family: var(--font-head); min-width: 70px; padding-top: .1em; }
.news-list .nl-title { font-size: .92rem; line-height: 1.4; }

/* =========================================================================
   11. ФОТОГАЛЕРЕЯ
   ========================================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gitem { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--c-sky-tint); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(10,39,64,.5)); opacity: 0; transition: opacity .25s; }
.gitem:hover img { transform: scale(1.08); }
.gitem:hover::after { opacity: 1; }

/* =========================================================================
   12. БАННЕР 3D-ТУРА / CTA
   ========================================================================= */
.cta-band {
  background: linear-gradient(115deg, var(--c-navy), var(--c-blue-600));
  border-radius: var(--r-lg);
  color: #fff; padding: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta-band__text h3 { color: #fff; margin-bottom: .3rem; }
.cta-band__text p { color: #cddcec; margin: 0; max-width: 52ch; }
.cta-band__ico { flex: none; width: 60px; height: 60px; border-radius: var(--r-md); background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.cta-band__ico svg { width: 32px; height: 32px; }

/* =========================================================================
   13. САЙДБАР / ВИДЖЕТЫ
   ========================================================================= */
.sidebar { display: flex; flex-direction: column; gap: 1.4rem; }
.widget {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 1.2rem 1.25rem;
}
.widget-title, .widget h2, .widget h3 {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--c-navy);
  margin: 0 0 1rem; padding-bottom: .7rem; position: relative;
  border-bottom: 1px solid var(--c-border-2);
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 46px; height: 2.5px; background: var(--c-gold); border-radius: 2px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin: 0; padding: .5rem 0; border-bottom: 1px dashed var(--c-border-2); font-size: .92rem; }
.widget ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget ul li a { color: var(--c-text-soft); display: block; }
.widget ul li a:hover { color: var(--c-blue); padding-left: 4px; transition: padding .18s; }
.widget ul ul { margin-top: .5rem; padding-left: 1rem; }

/* Виджет «Блог директора» */
.director-card { text-align: center; }
.director-card__photo {
  width: 130px; height: 150px; margin: 0 auto 1rem; border-radius: var(--r-md);
  overflow: hidden; border: 3px solid var(--c-sky-tint); background: var(--c-sky-tint);
}
.director-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.director-card__name { font-family: var(--font-head); font-weight: 700; color: var(--c-navy); font-size: 1.05rem; }
.director-card__role { font-size: .85rem; color: var(--c-muted); margin-bottom: .9rem; }

/* Инфо-список (вакансии) с датами */
.info-list li { display: flex; flex-direction: column; gap: .2rem; }
.info-list .info-date { font-size: .74rem; color: var(--c-gold); font-weight: 700; font-family: var(--font-head); }

/* Календарь виджета */
.widget table#wp-calendar, .widget .wp-calendar-table { font-size: .85rem; }
.widget #wp-calendar caption { font-weight: 700; color: var(--c-navy); padding-bottom: .5rem; }
.widget #wp-calendar th { background: var(--c-navy); color: #fff; padding: .4em; font-size: .8rem; }
.widget #wp-calendar td { padding: .4em; text-align: center; border-color: var(--c-border-2); }
.widget #wp-calendar td#today { background: var(--c-blue); color: #fff; border-radius: 4px; }

/* =========================================================================
   14. КОНТЕНТ ЗАПИСИ / СТРАНИЦЫ
   ========================================================================= */
.content-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: clamp(1.3rem, 1rem + 1.5vw, 2.4rem); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .84rem; color: var(--c-muted); margin-bottom: 1.3rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--c-border-2); }
.entry-meta span { display: inline-flex; align-items: center; gap: .4em; }
.entry-meta svg { width: 15px; height: 15px; color: var(--c-sky); }
.entry-meta a { color: var(--c-muted); }
.entry-meta a:hover { color: var(--c-blue); }
.entry-title { margin-bottom: .8rem; }
.entry-content { font-size: 1.02rem; color: var(--c-text-soft); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--r-sm); margin-block: 1rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(26,90,168,.35); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content ul li { list-style: none; position: relative; padding-left: 1.5em; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--c-sky); transform: rotate(45deg); }
.entry-content ol { counter-reset: item; list-style: none; padding-left: 0; }
.entry-content ol li { counter-increment: item; padding-left: 2.2em; position: relative; }
.entry-content ol li::before { content: counter(item); position: absolute; left: 0; top: .05em; width: 1.5em; height: 1.5em; background: var(--c-sky-tint); color: var(--c-blue); border-radius: 50%; font-weight: 700; font-size: .8em; display: flex; align-items: center; justify-content: center; }

.featured-media { border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.5rem; }

/* Навигация по записям */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface); transition: border-color .2s, box-shadow .2s; }
.post-nav a:hover { border-color: var(--c-sky); box-shadow: var(--shadow-1); }
.post-nav .pn-label { font-size: .75rem; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.post-nav .pn-title { font-family: var(--font-head); font-weight: 600; color: var(--c-navy); font-size: .95rem; }
.post-nav .next { text-align: right; }

/* Пагинация */
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.4rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 .7em;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: #fff; color: var(--c-text-soft); font-weight: 600; font-family: var(--font-head);
}
.pagination .page-numbers:hover { border-color: var(--c-sky); color: var(--c-blue); }
.pagination .page-numbers.current { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* Комментарии — минимально */
.comments-area { margin-top: 2.4rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 1.1rem; margin-bottom: 1rem; }

/* =========================================================================
   15. ФУТЕР
   ========================================================================= */
.site-footer { background: var(--c-ink); color: #a9c1d8; margin-top: auto; }
.footer-top { padding-block: clamp(2.4rem, 1.8rem + 2.5vw, 3.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 2.5px; background: var(--c-gold); border-radius: 2px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col a { color: #b3c7da; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.footer-brand .brand__emblem { width: 48px; height: 48px; }
.footer-brand__name { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; line-height: 1.25; }
.footer-about p { font-size: .9rem; color: #9fb6cc; margin-bottom: 1rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; font-size: .9rem; }
.footer-contact svg { width: 17px; height: 17px; flex: none; color: var(--c-sky); margin-top: .15em; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #cddcec; }
.footer-social a:hover { background: var(--c-blue); color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.2rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: #8ba5bd; }
.footer-bottom a { color: #b3c7da; }

/* =========================================================================
   16. УТИЛИТЫ / WORDPRESS-КЛАССЫ
   ========================================================================= */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: var(--c-blue); padding: .7em 1.2em; border-radius: 0 0 var(--r-sm) 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.alignleft { float: left; margin: .4rem 1.6rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.6rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--c-muted); text-align: center; margin-top: .4rem; }
.sticky .content-card { border-color: var(--c-sky); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

.badge { display: inline-block; background: var(--c-sky-tint); color: var(--c-blue); font-size: .78rem; font-weight: 600; padding: .25em .7em; border-radius: var(--r-pill); font-family: var(--font-head); }

/* =========================================================================
   17. АДАПТИВНОСТЬ
   ========================================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .quicklinks { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .header-search input { width: 170px; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  /* Мобильное меню */
  .nav-toggle { display: inline-flex; }
  .primary-nav .nav-inner { flex-direction: column; align-items: stretch; }
  .menu {
    display: none; flex-direction: column; width: 100%;
    background: var(--c-navy); border-top: 1px solid rgba(255,255,255,.08);
    max-height: 72vh; overflow-y: auto;
  }
  .nav-open .menu { display: flex; }
  .menu > li { width: 100%; }
  .menu > li > a { padding: .95em 1.2em; border-bottom: 1px solid rgba(255,255,255,.06); }
  .menu > li > a::after { display: none; }
  .menu ul.sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; background: rgba(0,0,0,.18);
    padding: 0; display: none;
  }
  .menu li.submenu-open > ul.sub-menu { display: block; }
  .menu ul.sub-menu a { color: #c7d7e7; padding: .7em 1.2em .7em 2.2em; }
  .menu ul.sub-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .submenu-toggle { display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #cddcec; padding: .5em; cursor: pointer; position: absolute; right: .6em; top: .35em; }
  .menu-item-has-children { position: relative; }
}

@media (max-width: 680px) {
  .quicklinks { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .post-nav { grid-template-columns: 1fr; }
  .identity__inner { flex-wrap: wrap; min-height: auto; }
  .header-search { display: none; }
  .topbar__group--left { display: none; }
  .brand__name { font-size: 1rem; }
}

/* Печать */
@media print {
  .site-header, .site-footer, .sidebar, .post-nav, .pagination, .hero { display: none !important; }
  body { background: #fff; }
  .content-card { border: 0; padding: 0; }
}

/* =========================================================================
   18. УЛУЧШЕНИЯ ДИЗАЙНА (v1.1) — анимации, орнамент, глубина
   ========================================================================= */

/* --- Плавное появление при прокрутке (прячем только если работает JS) --- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .stagger > * { opacity: 0; transform: translateY(24px); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .47s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .ncard__media img, .gitem img { transition: none !important; }
}

/* --- Декоративный орнамент-разделитель (қазақ оюы, сдержанно) --- */
.ornament { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 0 auto 1.3rem; color: var(--c-gold); }
.ornament::before, .ornament::after { content: ""; height: 1.5px; width: 66px; border-radius: 2px; }
.ornament::before { background: linear-gradient(90deg, transparent, var(--c-gold)); }
.ornament::after { background: linear-gradient(90deg, var(--c-gold), transparent); }
.ornament svg { width: 30px; height: 22px; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.sec-head--center .sec-head__title { padding-left: 0; }
.sec-head--center .sec-head__title::before { display: none; }
.sec-head--center .sec-head__sub { text-align: center; }

/* --- Hero: волна-разделитель и орнаментальный водяной знак --- */
.hero { position: relative; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; z-index: 1; }
.hero__wave svg { width: 100%; height: 64px; display: block; }
.hero__ornament { position: absolute; right: -30px; top: 46%; transform: translateY(-50%); width: 400px; max-width: 42%; opacity: .07; color: #fff; pointer-events: none; z-index: 1; }
.hero__ornament svg { width: 100%; height: auto; }
.hero__inner { position: relative; z-index: 2; }

/* Иконки в статистике hero */
.stat__ico { display: block; width: 24px; height: 24px; margin: 0 auto .45rem; color: var(--c-sky); }
.stat__ico svg { display: block; width: 100%; height: 100%; }

/* --- Блок ценностей --- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.vcard {
  text-align: center; padding: 1.8rem 1.2rem;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative; overflow: hidden;
}
.vcard::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c-blue), var(--c-sky)); transform: scaleX(0); transition: transform .3s var(--ease); }
.vcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); border-color: transparent; }
.vcard:hover::after { transform: scaleX(1); }
.vcard__ico {
  width: 62px; height: 62px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--c-sky-tint), #ffffff);
  color: var(--c-blue); box-shadow: inset 0 0 0 1px var(--c-border-2);
  transition: transform .25s var(--ease);
}
.vcard:hover .vcard__ico { transform: scale(1.08); }
.vcard__ico svg { width: 30px; height: 30px; }
.vcard h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.vcard p { font-size: .87rem; color: var(--c-muted); margin: 0; }

/* --- Полировка кнопок (блеск) --- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn--primary:hover::after { left: 140%; }

/* --- Полировка карточек новостей (верхний акцент) --- */
.ncard { position: relative; }
.ncard::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--c-blue), var(--c-sky));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.ncard:hover::before { transform: scaleX(1); }

/* --- Полировка быстрых ссылок --- */
.qcard__ico { transition: transform .25s var(--ease), background .25s, color .25s; }
.qcard:hover .qcard__ico { transform: scale(1.07) rotate(-4deg); background: var(--c-blue); color: #fff; }

/* --- Тонкая линия-акцент под баннером страницы --- */
.page-hero { border-bottom: 3px solid var(--c-gold); }

/* --- Адаптив новых блоков --- */
@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .hero__ornament { display: none; }
}
@media (max-width: 680px) {
  .values { grid-template-columns: 1fr; }
  .hero__wave svg { height: 40px; }
}
