/*
Theme Name:   НаукаГПА
Theme URI:    https://nauka-gpa.ru
Description:  Дочерняя тема Astra для сайта научного сектора ГПА КФУ
Author:       Коаде Станислав Иванович
Template:     astra
Version:      1.0.0
Text Domain:  nauka-gpa
*/

/* =====================================================================
   ПЕРЕМЕННЫЕ
   ===================================================================== */
:root {
  --navy:       #1A2B5E;
  --navy-dk:    #0F1C40;
  --teal:       #0B8E8E;
  --teal-lt:    #13AEAE;
  --white:      #FFFFFF;
  --off-white:  #F4F7FB;
  --gray-lt:    #E2E8F0;
  --gray:       #64748B;
  --text:       #1E293B;
  --green:      #1A7A4A;
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --radius:     10px;
  --transition: .25s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

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

/* =====================================================================
   ТИПОГРАФИКА
   ===================================================================== */
h1, h2, h3, h4, h5 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--navy);
  margin-top: 0;
  line-height: 1.25;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { line-height: 1.7; margin-top: 0; }

/* =====================================================================
   ХЕДЕР
   ===================================================================== */
.site-header,
#masthead {
  background: var(--navy) !important;
  border-bottom: 3px solid var(--teal) !important;
  padding: 0 !important;
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title {
  color: var(--white) !important;
  font-family: 'Georgia', serif;
  font-size: 1.4rem;
  letter-spacing: .02em;
}

.ast-site-identity .site-description {
  color: var(--teal-lt) !important;
  font-size: .8rem;
}

/* Навигация */
.main-navigation a,
.ast-header-menu-item a,
#site-navigation a {
  color: var(--white) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px !important;
  transition: color var(--transition);
}
.main-navigation a:hover,
.ast-header-menu-item a:hover {
  color: var(--teal-lt) !important;
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.ngpa-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 60%, #1a4a6e 100%);
  color: var(--white);
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ngpa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230B8E8E' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.ngpa-hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.ngpa-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.ngpa-hero p {
  color: #a8c4e8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}
.ngpa-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-lt); transform: translateY(-2px); color: var(--white) !important; }
.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255,255,255,.4);
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline:hover { border-color: var(--teal-lt); color: var(--teal-lt) !important; }

/* =====================================================================
   СЧЁТЧИКИ HERO
   ===================================================================== */
.ngpa-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.ngpa-stat-item { text-align: center; }
.ngpa-stat-item .num {
  font-family: 'Georgia', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal-lt);
  display: block;
}
.ngpa-stat-item .lbl {
  font-size: .8rem;
  color: #a8c4e8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* =====================================================================
   КОНТЕЙНЕР
   ===================================================================== */
.ngpa-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================================
   SECTION HEADER
   ===================================================================== */
.ngpa-section { padding: 64px 20px; }
.ngpa-section-alt { background: var(--off-white); }

.ngpa-section-title {
  text-align: center;
  margin-bottom: 48px;
}
.ngpa-section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}
.ngpa-section-title .subtitle {
  color: var(--gray);
  font-size: .95rem;
}
.ngpa-section-title .teal-line {
  width: 60px;
  height: 3px;
  background: var(--teal);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* =====================================================================
   КАРТОЧКИ КОНФЕРЕНЦИЙ
   ===================================================================== */
.ngpa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.conf-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.conf-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.14); }

.conf-card-top {
  background: var(--navy);
  padding: 22px 22px 16px;
  position: relative;
}
.conf-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.badge-upcoming { background: var(--teal); color: var(--white); }
.badge-past     { background: var(--gray); color: var(--white); }
.badge-international { background: #7C3AED; color: var(--white); }
.badge-allrussian    { background: #D97706; color: var(--white); }

.conf-card-top h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.35;
}

.conf-card-body { padding: 18px 22px; flex: 1; }
.conf-meta { font-size: .85rem; color: var(--gray); margin-bottom: 10px; }
.conf-meta span { margin-right: 14px; }
.conf-meta .icon { margin-right: 4px; }

.conf-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--gray-lt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =====================================================================
   КАРТОЧКИ ПУБЛИКАЦИЙ
   ===================================================================== */
.pub-card {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.pub-card:hover { transform: translateX(4px); }
.pub-card h3 { font-size: 1rem; margin-bottom: 8px; }
.pub-meta { font-size: .82rem; color: var(--gray); }
.pub-doi { font-size: .78rem; color: var(--teal); margin-top: 8px; display: block; }

/* =====================================================================
   КАРТОЧКИ ПРОЕКТОВ
   ===================================================================== */
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}
.project-card:hover { transform: translateY(-3px); }
.project-status {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
  margin-bottom: 10px;
}

/* =====================================================================
   НОВОСТИ
   ===================================================================== */
.news-card {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-lt);
}
.news-card:last-child { border-bottom: none; }
.news-date {
  min-width: 56px;
  text-align: center;
}
.news-date .day { font-size: 1.8rem; font-weight: 700; color: var(--teal); line-height: 1; font-family: 'Georgia', serif; }
.news-date .month { font-size: .72rem; text-transform: uppercase; color: var(--gray); }
.news-body h3 { font-size: .95rem; margin-bottom: 6px; }
.news-body p { font-size: .85rem; color: var(--gray); margin: 0; }

/* =====================================================================
   ФОРМА ЗАЯВКИ
   ===================================================================== */
.ngpa-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  max-width: 680px;
  margin: 0 auto;
}
.ngpa-form-wrap h2 {
  margin-bottom: 6px;
}
.ngpa-form-wrap .form-subtitle {
  color: var(--gray);
  font-size: .9rem;
  margin-bottom: 28px;
}

.ngpa-form .form-group { margin-bottom: 20px; }
.ngpa-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.ngpa-form input[type="text"],
.ngpa-form input[type="email"],
.ngpa-form input[type="tel"],
.ngpa-form select,
.ngpa-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-lt);
  border-radius: 7px;
  font-size: .95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
}
.ngpa-form input:focus,
.ngpa-form select:focus,
.ngpa-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,142,142,.12);
}
.ngpa-form textarea { resize: vertical; min-height: 100px; }
.ngpa-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ngpa-form .form-submit { margin-top: 8px; }
.ngpa-form .btn-submit {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 13px 34px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.ngpa-form .btn-submit:hover { background: var(--navy); transform: translateY(-1px); }
.ngpa-form-notice {
  font-size: .8rem;
  color: var(--gray);
  text-align: center;
  margin-top: 12px;
}

/* =====================================================================
   ФИЛЬТРЫ
   ===================================================================== */
.ngpa-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--gray-lt);
  border-radius: 30px;
  background: var(--white);
  color: var(--gray);
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* =====================================================================
   ПОИСК
   ===================================================================== */
.ngpa-search-box {
  display: flex;
  max-width: 520px;
  margin: 0 auto 36px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.ngpa-search-box input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-size: .95rem;
  outline: none;
  color: var(--text);
}
.ngpa-search-box button {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  transition: background var(--transition);
}
.ngpa-search-box button:hover { background: var(--navy); }

/* =====================================================================
   ЛИЧНЫЙ КАБИНЕТ
   ===================================================================== */
.lk-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.lk-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lk-avatar {
  background: var(--navy);
  padding: 28px 20px;
  text-align: center;
}
.lk-avatar .avatar-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: var(--white);
  margin: 0 auto 12px;
  font-family: 'Georgia', serif;
}
.lk-avatar .user-name { color: var(--white); font-weight: 600; font-size: 1rem; }
.lk-avatar .user-email { color: #a8c4e8; font-size: .8rem; margin-top: 4px; }
.lk-menu { padding: 10px 0; }
.lk-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  color: var(--text);
  font-size: .9rem;
  transition: background var(--transition);
}
.lk-menu a:hover, .lk-menu a.active { background: var(--off-white); color: var(--teal); }
.lk-menu a .lk-icon { font-size: 1rem; width: 20px; text-align: center; }

.lk-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}
.lk-content h2 { font-size: 1.3rem; margin-bottom: 6px; }
.lk-content .lk-subtitle { color: var(--gray); font-size: .85rem; margin-bottom: 24px; }

/* Таблица заявок */
.app-table { width: 100%; border-collapse: collapse; }
.app-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  font-size: .83rem;
  text-align: left;
  font-weight: 600;
}
.app-table td {
  padding: 12px 14px;
  font-size: .88rem;
  border-bottom: 1px solid var(--gray-lt);
}
.app-table tr:last-child td { border-bottom: none; }
.app-table tr:nth-child(even) td { background: var(--off-white); }
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.status-pending  { background: #FEF3C7; color: #92400E; }
.status-approved { background: #D1FAE5; color: #065F46; }
.status-rejected { background: #FEE2E2; color: #991B1B; }

/* =====================================================================
   УВЕДОМЛЕНИЯ
   ===================================================================== */
.ngpa-notice {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: .9rem;
}
.ngpa-notice-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--green); }
.ngpa-notice-error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid #DC2626; }
.ngpa-notice-info    { background: #DBEAFE; color: #1E40AF; border-left: 4px solid #3B82F6; }

/* =====================================================================
   СТРАНИЦА ОДИНОЧНОГО МАТЕРИАЛА
   ===================================================================== */
.single-ngpa-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px;
  align-items: start;
}
.single-main {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}
.single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
}
.detail-row { display: flex; gap: 10px; margin-bottom: 10px; font-size: .88rem; }
.detail-label { color: var(--gray); min-width: 100px; }
.detail-value { color: var(--text); font-weight: 500; }

/* =====================================================================
   ФУТЕР
   ===================================================================== */
.site-footer,
#colophon {
  background: var(--navy-dk) !important;
  color: #a8c4e8 !important;
  border-top: 3px solid var(--teal) !important;
  padding: 0 !important;
}
.ngpa-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 20px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-brand h3 { color: var(--white); margin-bottom: 8px; font-size: 1.2rem; }
.footer-brand p  { color: #7094c0; font-size: .85rem; line-height: 1.6; }
.footer-col h4   { color: var(--teal-lt); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col a    { display: block; color: #7094c0; font-size: .85rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 20px;
  text-align: center;
  max-width: 1180px;
  margin: 0 auto;
  font-size: .8rem;
  color: #7094c0;
}

/* =====================================================================
   ХЛЕБНЫЕ КРОШКИ
   ===================================================================== */
.ngpa-breadcrumb {
  background: var(--navy);
  padding: 12px 20px;
}
.ngpa-breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  font-size: .83rem;
  color: #a8c4e8;
}
.ngpa-breadcrumb-inner a { color: var(--teal-lt); }
.ngpa-breadcrumb-inner a:hover { color: var(--white); }
.ngpa-breadcrumb-inner .sep { margin: 0 8px; }

/* =====================================================================
   ПАГИНАЦИЯ
   ===================================================================== */
.ngpa-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.ngpa-pagination a,
.ngpa-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-lt);
  color: var(--text);
  transition: all var(--transition);
}
.ngpa-pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ngpa-pagination .current { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* =====================================================================
   СТРАНИЦА ОШИБКИ / ПУСТО
   ===================================================================== */
.ngpa-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.ngpa-empty .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.ngpa-empty h3 { color: var(--navy); }

/* =====================================================================
   АДАПТИВНОСТЬ
   ===================================================================== */
@media (max-width: 900px) {
  .single-ngpa-wrap { grid-template-columns: 1fr; }
  .lk-wrap { grid-template-columns: 1fr; }
  .ngpa-footer-inner { grid-template-columns: 1fr 1fr; }
  .ngpa-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ngpa-hero { padding: 50px 16px 44px; }
  .ngpa-stats { gap: 24px; }
  .ngpa-section { padding: 44px 16px; }
  .ngpa-footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px; }
  .ngpa-form-wrap { padding: 24px 18px; }
  .single-main { padding: 24px 18px; }
  .lk-content { padding: 20px 16px; }
  .ngpa-filters { gap: 8px; }
}

/* =====================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — ХЕДЕР
   ===================================================================== */

/* Гамбургер кнопка */
.ngpa-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.ngpa-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s ease;
}
.ngpa-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ngpa-burger.open span:nth-child(2) { opacity: 0; }
.ngpa-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Мобильное выпадающее меню */
.ngpa-mobile-menu {
  display: none;
  background: var(--navy-dk);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 20px 20px;
}
.ngpa-mobile-menu.open { display: block; }
.ngpa-mobile-menu a {
  display: block;
  color: rgba(255,255,255,.85) !important;
  padding: 13px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 500;
}
.ngpa-mobile-menu a:last-child { border-bottom: none; }
.ngpa-mobile-menu a:hover { color: var(--teal-lt) !important; }
.ngpa-mobile-menu .mobile-auth {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 4px;
}
.ngpa-mobile-menu .mobile-auth a {
  flex: 1;
  text-align: center;
  border: none;
  padding: 11px;
  border-radius: 8px;
}
.ngpa-mobile-menu .mobile-auth .m-login { background: rgba(255,255,255,.1); }
.ngpa-mobile-menu .mobile-auth .m-reg   { background: var(--teal); }

@media (max-width: 768px) {
  /* Показываем гамбургер */
  .ngpa-burger { display: flex; }

  /* Скрываем десктопную навигацию */
  .main-navigation,
  #site-navigation,
  .ngpa-desktop-auth,
  .ngpa-subnav {
    display: none !important;
  }

  /* Хедер — одна строка: лого + бургер */
  .ngpa-header-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    min-height: 58px;
  }

  /* Hero */
  .ngpa-hero { padding: 40px 16px 36px; }
  .ngpa-hero h1 { font-size: 1.7rem; }
  .ngpa-hero p  { font-size: .95rem; }
  .ngpa-hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .ngpa-hero-btns a { width: 100%; max-width: 280px; text-align: center; }
  .ngpa-stats { gap: 18px; margin-top: 32px; }
  .ngpa-stat-item .num { font-size: 1.8rem; }

  /* Секции */
  .ngpa-section { padding: 36px 16px; }
  .ngpa-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Карточки конференций */
  .conf-card-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
  .conf-card-footer .btn-primary { width: 100%; text-align: center; }

  /* Форма */
  .ngpa-form-wrap { padding: 20px 16px; }
  .ngpa-form .form-row { grid-template-columns: 1fr; }

  /* Личный кабинет */
  .lk-wrap { grid-template-columns: 1fr; }
  .lk-content { padding: 18px 14px; }
  .app-table { font-size: .82rem; }
  .app-table th, .app-table td { padding: 8px 10px; }

  /* Страница материала */
  .single-ngpa-wrap {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 20px;
  }
  .single-main { padding: 20px 16px; }

  /* Поиск */
  .ngpa-search-box { border-radius: 8px; }
  .ngpa-search-box input { font-size: .9rem; padding: 12px 14px; }
  .ngpa-search-box button { padding: 12px 16px; }

  /* Фильтры */
  .ngpa-filters { gap: 8px; }
  .filter-btn { padding: 7px 14px; font-size: .82rem; }

  /* Футер */
  .ngpa-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 16px;
  }
  .footer-bottom { font-size: .75rem; padding: 14px 16px; }

  /* Одиночная страница: детали */
  .detail-row { flex-direction: column; gap: 2px; }
  .detail-label { min-width: unset; }

  /* Пагинация */
  .ngpa-pagination a,
  .ngpa-pagination span { width: 36px; height: 36px; font-size: .85rem; }

  /* Хлебные крошки */
  .ngpa-breadcrumb { padding: 10px 16px; }
  .ngpa-breadcrumb-inner { font-size: .78rem; }

  /* Таблица заявок — горизонтальный скролл */
  .app-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 420px) {
  .ngpa-hero h1 { font-size: 1.45rem; }
  .ngpa-stat-item .num { font-size: 1.5rem; }
  .ngpa-stats { gap: 12px; }
  h2 { font-size: 1.3rem; }
}
/* =====================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — ПАТЧ К style.css
   Добавить в конец style.css
   ===================================================================== */

/* Хедер мобильный */
@media (max-width: 768px) {
  #masthead > div:first-child {
    flex-wrap: wrap;
    padding: 10px 14px !important;
    gap: 8px;
  }
  .main-navigation { display: none; width: 100%; }
  .main-navigation.open { display: block; }

  /* Кнопки входа компактнее */
  .ngpa-hero { padding: 36px 14px 30px; }
  .ngpa-hero h1 { font-size: 1.7rem; }
  .ngpa-hero p { font-size: .95rem; }
  .ngpa-hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .ngpa-hero-btns .btn-primary,
  .ngpa-hero-btns .btn-outline { width: 100%; max-width: 280px; text-align: center; }

  .ngpa-stats { gap: 16px; }
  .ngpa-stat-item .num { font-size: 1.8rem; }

  /* Сетка карточек — 1 колонка */
  .ngpa-grid { grid-template-columns: 1fr !important; }

  /* Секции */
  .ngpa-section { padding: 32px 14px; }
  .ngpa-section-title h2 { font-size: 1.3rem; }

  /* Одиночная страница */
  .single-ngpa-wrap {
    grid-template-columns: 1fr !important;
    padding: 20px 14px !important;
    gap: 16px;
  }
  .single-main { padding: 20px 16px !important; }
  .single-sidebar { order: -1; }

  /* Личный кабинет */
  .lk-wrap { grid-template-columns: 1fr !important; gap: 16px; }
  .lk-sidebar { order: -1; }
  .lk-content { padding: 18px 14px !important; }
  .app-table { font-size: .78rem; }
  .app-table th, .app-table td { padding: 8px 8px; }

  /* Форма заявки */
  .ngpa-form-wrap { padding: 20px 14px !important; }
  .ngpa-form .form-row { grid-template-columns: 1fr !important; }

  /* Футер */
  .ngpa-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 28px 14px !important;
  }

  /* Фильтры */
  .ngpa-filters { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: .82rem; }

  /* Поиск */
  .ngpa-search-box { margin-bottom: 20px; }

  /* Хлебные крошки */
  .ngpa-breadcrumb { padding: 10px 14px; }
  .ngpa-breadcrumb-inner { font-size: .78rem; }

  /* Таблица публикаций скролл */
  .pub-card { padding: 14px 16px; }

  /* Новости */
  .news-card { gap: 12px; }
  .news-date .day { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .ngpa-hero h1 { font-size: 1.4rem; }
  .conf-card-top h3 { font-size: .95rem; }
  .lk-content h2 { font-size: 1.1rem; }
  .app-table { display: block; overflow-x: auto; white-space: nowrap; }
  .ngpa-section-title h2 { font-size: 1.15rem; }
}

/* =====================================================================
   БУРГЕР-МЕНЮ
   ===================================================================== */
.ngpa-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.ngpa-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .25s ease;
}
.ngpa-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.ngpa-burger.open span:nth-child(2) { opacity: 0; }
.ngpa-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 768px) {
  .ngpa-burger { display: flex; }
}

/* =====================================================================
   КАЛЕНДАРЬ КОНФЕРЕНЦИЙ
   ===================================================================== */
.ngpa-calendar-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 36px;
}

.cal-header {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.cal-header h3 { color: #fff; margin: 0; font-size: 1.1rem; font-family: 'Georgia',serif; }
.cal-nav {
  background: none;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cal-nav:hover { background: var(--teal); border-color: var(--teal); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.cal-dow {
  text-align: center;
  padding: 10px 4px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-lt);
}
.cal-cell {
  min-height: 64px;
  padding: 6px 8px;
  border: .5px solid #e8edf5;
  position: relative;
  cursor: default;
  transition: background .15s;
}
.cal-cell.other-month { background: #fafbfd; }
.cal-cell.today { background: #e8f4fd; }
.cal-cell.today .cal-day-num { color: var(--teal); font-weight: 700; }
.cal-cell.has-event { cursor: pointer; }
.cal-cell.has-event:hover { background: #f0f8ff; }
.cal-day-num {
  font-size: .82rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}
.cal-event-dot {
  display: block;
  font-size: .68rem;
  background: var(--teal);
  color: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.3;
}
.cal-event-dot.past { background: var(--gray); }

/* Тултип события */
.cal-tooltip {
  position: absolute;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .82rem;
  width: 220px;
  top: 100%; left: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: none;
  line-height: 1.5;
}
.cal-cell:hover .cal-tooltip { display: block; }
.cal-tooltip .tt-title { font-weight: 700; color: var(--teal-lt); margin-bottom: 4px; font-size: .88rem; }
.cal-tooltip a { color: var(--teal-lt); }

@media (max-width: 600px) {
  .cal-cell { min-height: 44px; padding: 4px 3px; }
  .cal-event-dot { font-size: .6rem; padding: 1px 3px; }
  .cal-day-num { font-size: .72rem; }
  .cal-tooltip { width: 160px; font-size: .75rem; }
}
