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

:root {
  --blue:        #1a5ca8;
  --blue-dark:   #0d3d74;
  --blue-light:  #e8f0fb;
  --accent:      #f4a916;
  --text:        #222;
  --text-muted:  #666;
  --border:      #dde3ed;
  --bg:          #f5f7fa;
  --white:       #fff;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --font:        'Inter', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===========================
   Layout
=========================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding: 28px 0; }
.content-area { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media(max-width:900px){ .content-area { grid-template-columns: 1fr; } }

/* ===========================
   Top Bar
=========================== */
.top-bar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-bar a { color: rgba(255,255,255,.8); }
.top-bar a:hover { color: #fff; }
.top-bar-links { display: flex; gap: 16px; }

/* ===========================
   Header
=========================== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0;
}
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 1; }
.site-logo img { width: auto; height: 100px; object-fit: contain; flex-shrink: 0; max-width: 260px; }
.logo-text { line-height: 1.3; }
.logo-text .school-name { font-size: 13px; font-weight: 700; color: var(--blue-dark); }
.logo-text .school-sub  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.header-contacts { text-align: right; font-size: 13px; flex-shrink: 0; }
.header-contacts .phone { font-weight: 700; font-size: 16px; color: var(--blue-dark); }
.header-contacts .label { color: var(--text-muted); font-size: 11px; }
.header-contacts .email { color: var(--text-muted); font-size: 12px; }

.header-accessibility {
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

/* ===========================
   Navigation
=========================== */
.site-nav {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  transition: box-shadow .2s;
}
.site-nav.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.nav-inner { display: flex; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; padding: 12px 16px; cursor: pointer; }

.main-menu { display: flex; flex-wrap: wrap; }
.main-menu > li { position: relative; }
.main-menu > li > a {
  display: block; color: #fff; padding: 14px 16px;
  font-size: 13px; font-weight: 500;
  transition: background .2s;
  white-space: nowrap;
}
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a { background: var(--blue-dark); }

.main-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 220px;
  box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200;
}
.main-menu > li:hover .sub-menu { display: block; }
.main-menu .sub-menu li a {
  display: block; padding: 10px 16px; color: var(--text);
  font-size: 13px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.main-menu .sub-menu li a:hover { background: var(--blue-light); color: var(--blue); }
.nav-search { margin-left: auto; padding: 8px 16px; }
.nav-search input {
  background: rgba(255,255,255,.15); border: none; border-radius: 20px;
  color: #fff; padding: 6px 14px; font-size: 13px; width: 180px;
  outline: none;
}
.nav-search input::placeholder { color: rgba(255,255,255,.6); }

@media(max-width:768px){
  .nav-toggle { display: block; }
  .main-menu { display: none; flex-direction: column; width: 100%; background: var(--blue); }
  .main-menu.open { display: flex; }
  .main-menu .sub-menu { position: static; box-shadow: none; background: var(--blue-dark); border-radius: 0; display: none; }
  .main-menu > li.open .sub-menu { display: block; }
}

/* ===========================
   Hero / Breadcrumb
=========================== */
.breadcrumb { padding: 10px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* ===========================
   Cards (News/Posts)
=========================== */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.posts-list { display: flex; flex-direction: column; gap: 20px; }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }

.post-card-img { position: relative; height: 200px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-date {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--blue); color: #fff;
  padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600;
}

.post-card-body { padding: 16px; }
.post-card-cats { font-size: 11px; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.post-card-title { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--blue); }
.post-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* List style card */
.post-list-item {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; gap: 16px; overflow: hidden;
  transition: transform .2s;
}
.post-list-item:hover { transform: translateX(3px); }
.post-list-img { width: 140px; flex-shrink: 0; }
.post-list-img img { width: 140px; height: 100%; object-fit: cover; }
.post-list-body { padding: 14px 14px 14px 0; flex: 1; }
.post-list-date { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.post-list-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.post-list-title a { color: var(--text); }
.post-list-title a:hover { color: var(--blue); }
@media(max-width:480px){ .post-list-img { width: 90px; } }

/* ===========================
   Single Post
=========================== */
article.single-post { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
article.single-post h1 { font-size: 24px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.post-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.post-meta a { color: var(--blue); }
.post-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.post-featured-img img { width: 100%; max-height: 460px; object-fit: cover; }
.post-content { font-size: 15px; line-height: 1.8; }
.post-content h2 { font-size: 20px; margin: 24px 0 12px; }
.post-content h3 { font-size: 17px; margin: 20px 0 10px; }
.post-content p { margin-bottom: 16px; }
.post-content img { border-radius: var(--radius); margin: 16px auto; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content li { margin-bottom: 6px; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.post-content table th { background: var(--blue); color: #fff; padding: 10px; }
.post-content table td { border: 1px solid var(--border); padding: 8px 10px; }
.post-content table tr:nth-child(even) td { background: var(--blue-light); }

/* ===========================
   Pagination
=========================== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  background: var(--white); box-shadow: var(--shadow);
  color: var(--text); transition: all .2s;
}
.pagination a:hover { background: var(--blue); color: #fff; }
.pagination .current { background: var(--blue); color: #fff; }

/* ===========================
   Sidebar
=========================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.widget-title {
  background: var(--blue); color: #fff;
  padding: 12px 16px; font-size: 14px; font-weight: 700;
}
.widget-body { padding: 14px 16px; }

/* Director widget */
.widget-director { text-align: center; }
.widget-director img { border-radius: 50%; width: 100px; height: 100px; object-fit: cover; margin: 0 auto 10px; }
.widget-director .name { font-weight: 700; font-size: 14px; }
.widget-director .role { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.widget-director .btn-blog {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 7px 16px; border-radius: 20px; font-size: 12px;
}

/* Events widget */
.events-list { display: flex; flex-direction: column; gap: 10px; }
.event-item { display: flex; gap: 10px; align-items: flex-start; }
.event-date { background: var(--blue); color: #fff; border-radius: 6px; padding: 6px 8px; text-align: center; min-width: 40px; flex-shrink: 0; }
.event-date .day { font-size: 18px; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 10px; text-transform: uppercase; }
.event-title { font-size: 13px; line-height: 1.4; }
.event-title a { color: var(--text); }
.event-title a:hover { color: var(--blue); }

/* Photo gallery widget */
.widget-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.widget-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.widget-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.widget-gallery a:hover img { transform: scale(1.08); }

/* Quick links widget */
.quick-links { display: flex; flex-direction: column; gap: 2px; }
.quick-links a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px; font-size: 13px;
  color: var(--text); transition: background .15s;
}
.quick-links a::before { content: '›'; color: var(--blue); font-size: 18px; font-weight: 700; }
.quick-links a:hover { background: var(--blue-light); color: var(--blue); }

/* ===========================
   Front Page Sections
=========================== */
.front-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff; padding: 48px 0; text-align: center; margin-bottom: 32px;
}
.front-hero h1 { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.front-hero p { font-size: 16px; opacity: .85; max-width: 600px; margin: 0 auto; }

.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 800; color: var(--blue-dark);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 24px;
  background: var(--accent); border-radius: 2px;
}

.view-all {
  display: inline-block; margin-top: 20px;
  background: var(--blue); color: #fff;
  padding: 9px 22px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.view-all:hover { background: var(--blue-dark); color: #fff; }

/* Banners row */
.banners-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.banner-item img { border-radius: var(--radius); box-shadow: var(--shadow); height: 80px; }

/* ===========================
   Pages
=========================== */
.page-content { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.page-content h1 { font-size: 24px; font-weight: 800; margin-bottom: 20px; color: var(--blue-dark); }

/* ===========================
   Footer
=========================== */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.85); margin-top: auto; }
.footer-main { padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media(max-width:768px){ .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid rgba(255,255,255,.2); }
.footer-col p, .footer-col li { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: #fff; }
.footer-col li { padding: 3px 0; }
.footer-col li::before { content: '›'; margin-right: 6px; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 16px 0; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ===========================
   Utilities
=========================== */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.btn {
  display: inline-block; padding: 9px 20px;
  background: var(--blue); color: #fff; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer; border: none;
  transition: background .2s;
}
.btn:hover { background: var(--blue-dark); color: #fff; }

/* No featured image placeholder */
.no-img { background: linear-gradient(135deg, var(--blue-light), #dde8f5); display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 40px; height: 200px; }

@media(max-width:600px){
  article.single-post { padding: 16px; }
  article.single-post h1 { font-size: 20px; }
  .front-hero h1 { font-size: 20px; }
}

/* ===========================
   Hero Banner
=========================== */
.hero-banner {
  position: relative; background-position: center; background-size: cover; background-repeat: no-repeat;
  background-color: var(--blue-dark);
  min-height: 240px; overflow: hidden; margin-bottom: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,61,116,.75) 0%, rgba(26,92,168,.55) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 36px 16px;
}
.hero-text { color: #fff; max-width: 580px; }
.hero-text h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero-text p  { font-size: 14px; opacity: .9; line-height: 1.6; margin-bottom: 20px; }
.hero-btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; transition: background .2s;
}
.hero-btn:hover { background: #d4920f; color: #fff; }
.hero-flag { flex-shrink: 0; }
.hero-flag img { height: 120px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
@media(max-width:600px){ .hero-flag { display:none; } .hero-text h1 { font-size:22px; } }

/* section-title inline link */
.section-title .view-all-inline {
  margin-left: auto; font-size: 13px; font-weight: 600;
  color: var(--blue); background: var(--blue-light);
  padding: 4px 12px; border-radius: 20px;
}

/* ===========================
   Team Section
=========================== */
.team-section { background: var(--white); padding: 40px 0; margin-top: 32px; border-top: 3px solid var(--blue-light); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
@media(max-width:900px){ .team-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .team-grid { grid-template-columns: 1fr; } }

.team-card { text-decoration: none; color: var(--text); background: var(--bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.team-card:hover { transform: translateY(-4px); }
.team-img { height: 200px; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.team-card:hover .team-img img { transform: scale(1.05); }
.team-info { padding: 12px; }
.team-name { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--blue); }

/* ===========================
   Calendar widget
=========================== */
.wp-calendar-wrap { overflow-x: auto; }
.wp-calendar-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wp-calendar-wrap caption { font-weight: 700; font-size: 13px; padding: 6px 0; color: var(--blue-dark); }
.wp-calendar-wrap th { background: var(--blue); color: #fff; padding: 5px; text-align: center; }
.wp-calendar-wrap td { padding: 5px; text-align: center; border: 1px solid var(--border); }
.wp-calendar-wrap td a { color: var(--blue); font-weight: 700; }
#today { background: var(--accent); color: #fff; border-radius: 50%; display: inline-block; width: 22px; height: 22px; line-height: 22px; }

/* ===========================
   Poll widget
=========================== */
.poll-options { display: flex; flex-direction: column; gap: 6px; }
.poll-option { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 6px; transition: background .15s; }
.poll-option:hover { background: var(--blue-light); }
.poll-option input { accent-color: var(--blue); }

/* ── Hero logo ── */
.hero-logo { margin-bottom: 12px; }
.hero-logo img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.hero-inner { max-width: 700px; }

/* ── Kazakhstan flag ── */
.kz-flag {
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.kz-flag img {
  display: block; width: 170px; height: 100px; object-fit: cover;
}
@media(max-width:900px){ .kz-flag { display: none; } }

/* ── WAH plugin: скрываем штатную кнопку, используем тему ── */
#wp_access_helper_container > button.wahout.aicon_link { display: none !important; }
.header-accessibility { cursor: pointer; }

/* ══════════════════════════════════════════════════════════
   LANGUAGE SWITCHER (Polylang)
   Оригинальный вид: Қазақша | Русский
   ══════════════════════════════════════════════════════════ */
/* Polylang выводит <li> без <ul> — стилизуем как строку */
.top-bar .lang-item {
  display: inline-block;
  list-style: none;
  padding: 0;
  margin: 0;
}
.top-bar .lang-item a {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
  padding: 0 4px;
}
.top-bar .lang-item a:hover { color: #fff; }
/* Активный язык — белый и жирный */
.top-bar .lang-item.current-lang a {
  color: #fff;
  font-weight: 700;
}
/* Разделитель | — добавляем псевдоэлементом после первого элемента */
.top-bar .lang-item:not(:last-child) a::after {
  content: ' |';
  color: rgba(255,255,255,.4);
  margin-left: 4px;
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════
   SEARCH — компактная кнопка по размеру слова
   ══════════════════════════════════════════════════════════ */
.nav-search { display: flex; align-items: center; gap: 0; margin-left: auto; padding: 6px 12px; }
.nav-search .search-form { display: flex; align-items: center; }
.nav-search label { margin: 0; }
.nav-search .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); }

/* Поле поиска */
.nav-search .search-field,
.nav-search input[type="search"] {
  background: rgba(255,255,255,.15) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  border-right: none !important;
  border-radius: 4px 0 0 4px !important;
  color: #fff !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  width: 180px !important;
  outline: none !important;
  height: 32px !important;
  box-sizing: border-box !important;
  transition: width .2s, background .2s !important;
}
.nav-search .search-field:focus,
.nav-search input[type="search"]:focus {
  background: rgba(255,255,255,.22) !important;
  width: 220px !important;
}
.nav-search .search-field::placeholder,
.nav-search input[type="search"]::placeholder { color: rgba(255,255,255,.6) !important; }

/* Кнопка — только по размеру текста */
.nav-search .search-submit,
.nav-search input[type="submit"] {
  background: rgba(255,255,255,.22) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  border-left: none !important;
  border-radius: 0 4px 4px 0 !important;
  color: #fff !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  width: auto !important;
  height: 32px !important;
  line-height: 32px !important;
  transition: background .2s !important;
  flex-shrink: 0 !important;
}
.nav-search .search-submit:hover,
.nav-search input[type="submit"]:hover { background: rgba(255,255,255,.35) !important; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE FIXES
   ══════════════════════════════════════════════════════════ */

/* Планшет 768–1024px */
@media(max-width:1024px) and (min-width:769px) {
  .header-inner { gap: 12px; }
  .site-logo img { height: 70px; }
  .header-contacts .phone { font-size: 14px; }
  .header-accessibility { font-size: 11px; padding: 6px 10px; }
  .nav-search input[type="search"] { width: 130px; }
}

/* Планшет и меньше ≤768px */
@media(max-width:768px) {
  /* Шапка: убираем контакты и доступность в колонну */
  .header-inner { flex-wrap: wrap; padding: 10px 0; gap: 10px; }
  .site-logo { flex: 0 0 auto; }
  .site-logo img { height: 80px; width: 80px; max-width: 80px; object-fit: cover; object-position: left center; }
  .logo-text .school-name { font-size: 14px; }
  .logo-text .school-sub  { display: none; }
  .header-contacts { display: none; }        /* убираем на мобайле */
  .header-accessibility { display: none; }   /* убираем на мобайле */

  /* Поиск в меню — inline */
  .nav-search { width: auto; flex: 1; padding: 6px 8px; }
  .nav-search .search-form { width: 100%; }
  .nav-search input[type="search"] {
    width: 100%; min-width: 80px;
    border-radius: 20px 0 0 20px;
  }
  .nav-search input[type="search"]:focus { width: 100%; }
  .nav-search input[type="submit"] { border-radius: 0 20px 20px 0; }

  /* Top bar на мобайле */
  .top-bar .top-bar-links { display: none; }
  .top-bar .container { flex-wrap: nowrap; }
}

/* Мобильный ≤480px */
@media(max-width:480px) {
  .top-bar { padding: 5px 0; }
  .top-bar-links { display: none !important; }
  .site-logo img { height: 80px; width: 80px; max-width: 80px; object-fit: cover; object-position: left center; }
  .logo-text .school-name { font-size: 13px; }
  .hero-text h1 { font-size: 20px; }
  .hero-text p { font-size: 13px; }
  .hero-inner { padding: 24px 12px; }
  .section-title { font-size: 16px; }
  .post-list-item { gap: 10px; }
  .post-list-img { min-width: 80px; max-width: 80px; }
  .post-list-img img { height: 70px; }
  /* Search на мобайле */
  .nav-search .search-field,
  .nav-search input[type="search"] { width: 120px !important; }
  .nav-search .search-field:focus,
  .nav-search input[type="search"]:focus { width: 150px !important; }
}

/* WAH credits — оставляем видимыми (требование бесплатной лицензии) */
