/* ===== CSS Variables ===== */
:root {
  --cream: #fdf8f0;
  --gray-blue: #e8edf5;
  --teal: #7ecfc5;
  --teal-light: #e6f7f5;
  --teal-dark: #5bbab0;
  --violet: #a888c8;
  --violet-light: #ede6f7;
  --coral: #f2a99a;
  --coral-light: #fdf0ed;
  --lavender: #dce3f2;
  --white: #ffffff;
  --text: #1c2535;
  --text-sec: #5a6a80;
  --text-muted: #8fa0b4;
  --border: rgba(28, 37, 53, 0.08);
  --shadow: 0 2px 10px rgba(28, 37, 53, 0.07);
  --shadow-md: 0 4px 20px rgba(28, 37, 53, 0.1);
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 80px;
}

body {
  background: var(--cream);
  font-family: var(--font-family);
  color: var(--text);
  margin: 0;
}
/* Отключаем нативную кнопку показа пароля в Edge и Chrome */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none;
}
input[type="password"]::-webkit-textfield-decoration-container {
  display: none;
}
/* Более простой способ – скрыть весь контейнер с нативными кнопками */
.password-wrapper input[type="password"] {
  padding-right: 40px; /* оставляем место для нашей иконки */
}
/* ===== Глобальные вспомогательные классы ===== */
.card,
.card-hover {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ===== Лендинг (Landing) ===== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: all 0.25s ease;
  padding: 0 16px;
}
.landing-nav.scrolled {
  background: rgba(253, 248, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.25s;
  color: white;
}
.scrolled .logo-title {
  color: var(--text);
}
.logo-sub {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s;
  color: rgba(255, 255, 255, 0.6);
}
.scrolled .logo-sub {
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 48px;
  flex: 1;
}
.nav-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 450;
  transition: color 0.15s;
  white-space: nowrap;
}
.scrolled .nav-link {
  color: var(--text-sec);
}
.nav-link:hover {
  color: white;
}
.scrolled .nav-link:hover {
  color: var(--text);
}
.nav-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-cream,
.donation-button {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text); /* чтобы текст был читаемым */
}
.btn-cream:hover,
.donation-button:hover {
  background: rgba(255, 255, 255, 0.9);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  cursor: pointer;
}

/* Hero слайдер */
.hero-slider {
  position: relative;
  margin-top: 0;
  overflow: hidden;
}
.slides-container {
  display: flex;
  transition: transform 0.6s ease;
}
.slide {
  flex: 0 0 100%;
  padding: 140px 0 80px;
}
.slide-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(126, 207, 197, 0.2);
  border: 1px solid rgba(126, 207, 197, 0.35);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
}
.slide-title {
  font-size: 58px;
  font-weight: 700;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 680px;
}
.slide-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin: 0 0 44px;
  max-width: 520px;
}
.slide-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.slider-controls {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-dots {
  display: flex;
  gap: 12px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  width: 28px;
  background: var(--teal);
}
.slider-arrows {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.slider-arrow {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.slide-bg-decor,
.slide-bg-decor2 {
  position: absolute;
  border-radius: 50%;
  background: rgba(126, 207, 197, 0.07);
  pointer-events: none;
}
.slide-bg-decor {
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
}
.slide-bg-decor2 {
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: rgba(168, 136, 200, 0.07);
}

/* Статистика */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
}
.stat-item {
  padding: 28px 36px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(126, 207, 197, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Секции лендинга */
.section-knowledge,
.section-about,
.section-experts,
.section-news {
  padding: 72px 48px;
  background: var(--cream);
}
.section-about {
  background: var(--white);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.section-header p {
  font-size: 16px;
  color: var(--text-sec);
  margin: 0;
}
.with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
}
.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card,
.expert-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  cursor: pointer;
  text-align: center;
  border: 1px solid var(--border);
}
.category-card:hover,
.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.category-label {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.category-count {
  font-size: 13px;
  color: var(--text-muted);
}
.category-link {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 500;
}

/* О проекте */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-size: 36px;
  margin: 20px 0 24px;
}
.about-text p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--gray-blue);
  border-radius: 16px;
  padding: 24px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* Эксперты */
.expert-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.expert-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.expert-role {
  font-size: 13px;
  color: var(--violet);
  margin-bottom: 6px;
  font-weight: 500;
}
.expert-org {
  font-size: 12px;
  color: var(--text-muted);
}

/* Новости */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.news-image {
  height: 160px;
  background: var(--gray-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 16px 0 0;
}
.news-content {
  padding: 24px;
}
.news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0;
  line-height: 1.4;
}
.news-date {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* CTA пожертвовать */
.section-donation {
  padding: 72px 48px;
  background: var(--cream);
}
.donation-banner {
  background: linear-gradient(135deg, var(--violet), var(--teal));
  border-radius: 24px;
  padding: 64px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.donation-banner h2 {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.donation-banner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 500px;
  line-height: 1.7;
}
.donation-buttons {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* Футер лендинга */
.landing-footer {
  background: var(--text);
  padding: 56px 48px 32px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 10px;
}
.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

/* ===== Приватная зона ===== */
.pnc-private-layout {
  display: flex;
  min-height: 100vh;
  background: var(--cream);
}
.pnc-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}
.pnc-sidebar.collapsed {
  width: 68px;
}
.pnc-sidebar.collapsed .sidebar-logo-text,
.pnc-sidebar.collapsed .sidebar-logo-sub,
.pnc-sidebar.collapsed .sidebar-nav-text,
.pnc-sidebar.collapsed #toggle-text {
  display: none;
}
.pnc-sidebar.collapsed .pnc-sidebar-logo-link {
  justify-content: center;
}
.pnc-sidebar.collapsed .pnc-sidebar-item {
  justify-content: center;
  padding: 11px 0;
}
.pnc-sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 20px;
  border-bottom: 1px solid rgba(28, 37, 53, 0.08);
  text-decoration: none;
}
.pnc-sidebar-logo-link svg {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  padding: 8px;
  flex-shrink: 0;
}
.pnc-sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sidebar-logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.sidebar-logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.pnc-sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.pnc-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 2px;
  text-decoration: none;
  color: var(--text-sec);
  transition: background 0.12s;
}
.pnc-sidebar-item.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}
.pnc-sidebar-item:hover {
  background: var(--gray-blue);
}
.pnc-sidebar-active-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--teal);
}
.pnc-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 4px;
}
.pnc-sidebar-toggle {
  flex-shrink: 0;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}
.pnc-toggle-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text-muted);
}
.pnc-toggle-button:hover {
  background: var(--gray-blue);
}
.pnc-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
@media (min-width: 769px) {
  .pnc-sidebar-header {
    padding: 20px;
  }
  .pnc-sidebar-close {
    display: none;
  }
}
@media (max-width: 768px) {
  .pnc-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
  }
}
.pnc-private-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.pnc-private-header {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 12px;
}
.pnc-header-search {
  flex: 1;
  max-width: 480px;
}
.pnc-search-wrapper {
  position: relative;
}
.pnc-search-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.pnc-search-wrapper input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--cream);
  font-size: 14px;
  outline: none;
}
.pnc-search-wrapper input:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--teal-light);
}
.pnc-search-hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-blue);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.pnc-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pnc-notification-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pnc-notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--coral);
  border: 2px solid var(--white);
}
.pnc-user-dropdown {
  position: relative;
}
.pnc-user-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.pnc-user-greeting .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.pnc-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pnc-user-info span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pnc-user-info span:last-child {
  font-size: 10px;
  color: var(--text-muted);
}
.pnc-user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  min-width: 180px;
}
.pnc-user-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text);
}
.pnc-user-menu a:hover {
  background: var(--gray-blue);
}
.pnc-private-content {
  flex: 1;
  overflow-y: auto;
  background: var(--cream);
  /* padding: 24px 32px; */
}
@media (max-width: 768px) {
  .pnc-private-header {
    padding: 0 16px;
  }
  /* .pnc-private-content {
    padding: 20px;
  } */
  .pnc-sidebar {
    position: fixed;
    left: -280px;
    width: 280px;
    height: 100%;
    z-index: 1000;
    transition: left 0.3s ease;
    top: 0;
  }
  .pnc-sidebar.open {
    left: 0;
  }
}
.admin-bar .pnc-sidebar {
  top: 32px;
  height: calc(100% - 32px);
}
@media (max-width: 782px) {
  .admin-bar .pnc-sidebar {
    top: 46px;
    height: calc(100% - 46px);
  }
}
.pnc-mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pnc-mobile-menu-toggle:hover {
  background: var(--gray-blue);
}
@media (max-width: 768px) {
  .pnc-mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 769px) {
  .pnc-mobile-menu-toggle {
    display: none;
  }
}

/* ===== Общие компоненты (карточки, кнопки, бейджи) ===== */
.btn-primary {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(126, 207, 197, 0.4);
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--violet);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--violet);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover {
  background: var(--violet-light);
}
.btn-ghost {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--text-sec);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.btn-ghost:hover {
  background: var(--gray-blue);
}
.pnc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
.pnc-badge-teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.pnc-badge-violet {
  background: var(--violet-light);
  color: var(--violet);
}
.pnc-badge-lavender {
  background: var(--lavender);
  color: #6070a0;
}
.pnc-badge-gray {
  background: var(--gray-blue);
  color: var(--text-sec);
}
.badge-gray,
.badge-coral,
.badge-lavender,
.badge-violet {
  /* для совместимости с лендингом */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.badge-gray {
  background: var(--gray-blue);
  color: var(--text-sec);
}
.badge-coral {
  background: var(--coral-light);
  color: #c07060;
}
.badge-lavender {
  background: var(--lavender);
  color: #6070a0;
}
.badge-violet {
  background: var(--violet-light);
  color: var(--violet);
}

.pnc-tag {
  display: inline-block;
  background: var(--violet-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--violet);
  text-decoration: none;
  transition: background 0.15s;
}
.pnc-tag:hover {
  background: var(--violet);
  color: white;
}
.pnc-fav-button {
  transition: all 0.12s;
}
.pnc-fav-button:hover {
  background: var(--gray-blue);
}
.pnc-fav-button.favorited {
  background: var(--violet-light);
  border-color: var(--violet);
  color: var(--violet);
}
.pnc-fav-button.favorited svg {
  color: var(--violet);
}
.pnc-pagination {
  margin-top: 30px;
  text-align: center;
}
.pnc-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-sec);
}
.pnc-pagination .current {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
/* ===== Страница материалов ===== */
.pnc-materials-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--cream);
}
.pnc-materials-filters {
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  overflow-x: auto;
  display: flex;
  gap: 24px;
}
.pnc-filter-group {
  flex-shrink: 0;
}
.pnc-filter-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pnc-filter-item {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  background: var(--gray-blue);
  color: var(--text-sec);
  margin-right: 8px;
  margin-bottom: 8px;
  white-space: nowrap;
}
.pnc-filter-item.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}
.pnc-materials-content {
  flex: 1;
  padding: 20px;
}
.pnc-materials-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.pnc-materials-toolbar h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.pnc-materials-count {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.pnc-materials-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pnc-search-mini {
  position: relative;
  flex: 1;
}
.pnc-search-mini input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
}
.pnc-search-mini button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}
.pnc-view-toggle {
  display: flex;
  background: var(--gray-blue);
  border-radius: 8px;
  padding: 3px;
}
.pnc-view-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pnc-view-btn.active {
  background: var(--white);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .pnc-materials-page {
    flex-direction: row;
  }
  .pnc-materials-filters {
    width: 220px;
    background: var(--white);
    flex-direction: column;
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 24px 16px;
  }
  .pnc-filter-group {
    display: block;
  }
  .pnc-filter-item {
    display: block;
    margin-right: 0;
    background: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: normal;
  }
  .pnc-filter-item.active {
    background: var(--teal-light);
  }
  .pnc-materials-content {
    padding: 28px 32px;
  }
  .pnc-materials-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .pnc-materials-actions {
    flex: 0 0 auto;
  }
  .pnc-search-mini {
    max-width: 240px;
  }
}
.pnc-materials-list.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pnc-material-list-item {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.pnc-material-list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pnc-material-list-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pnc-material-list-content {
  flex: 1;
}
.pnc-material-list-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.pnc-material-list-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.pnc-material-list-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pnc-materials-list.grid-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .pnc-materials-list.grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .pnc-material-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition:
      transform 0.15s,
      box-shadow 0.15s;
  }
  .pnc-material-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  .pnc-material-cover {
    height: 120px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .pnc-material-icon svg {
    width: 52px;
    height: 52px;
  }
  .pnc-material-badge {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .pnc-material-info {
    padding: 16px 18px;
  }
  .pnc-material-title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
  }
  .pnc-material-meta {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
  }
}
@media (min-width: 1024px) {
  .pnc-materials-list.grid-view {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ===== Страница избранного ===== */
.pnc-favorites-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
  background: var(--cream);
}
.pnc-favorites-header {
  margin-bottom: 24px;
}
.pnc-favorites-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.pnc-favorites-header p {
  font-size: 14px;
  color: var(--text-sec);
  margin: 0;
}
.pnc-favorites-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.pnc-favorites-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pnc-favorites-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 600;
}
.pnc-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-blue);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.pnc-favorites-tab.active .pnc-tab-count {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.pnc-favorites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pnc-favorite-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: box-shadow 0.15s;
}
.pnc-favorite-card:hover {
  box-shadow: var(--shadow-md);
}
.pnc-favorite-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pnc-favorite-info {
  flex: 1;
  min-width: 0;
}
.pnc-favorite-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.pnc-favorite-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.pnc-favorite-meta-row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.pnc-favorite-meta-row svg {
  margin-right: 2px;
}
.pnc-favorite-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.pnc-fav-remove,
.pnc-fav-download {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.pnc-fav-remove:hover {
  background: var(--coral-light);
  border-color: var(--coral);
}
.pnc-fav-download:hover {
  background: var(--gray-blue);
}
.pnc-empty-favorites {
  text-align: center;
  padding: 60px 20px;
}
.pnc-empty-icon {
  width: 72px;
  height: 72px;
  background: var(--gray-blue);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.pnc-empty-favorites h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pnc-empty-favorites p {
  font-size: 14px;
  color: var(--text-sec);
  max-width: 320px;
  margin: 0 auto 24px;
}
.pnc-favorite-link {
  display: flex;
  gap: 16px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.pnc-favorite-link:hover .pnc-favorite-title {
  color: var(--teal-dark);
}
@media (min-width: 768px) {
  .pnc-favorites-page {
    max-width: 860px;
    padding: 32px 36px;
  }
  .pnc-favorites-header h1 {
    font-size: 28px;
  }
  .pnc-favorite-card {
    padding: 18px 20px;
  }
  .pnc-favorite-icon {
    width: 48px;
    height: 48px;
  }
  .pnc-favorite-title {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .pnc-favorites-page {
    max-width: 960px;
  }
}

/* ===== Страница "Популярное" ===== */
.pnc-popular-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}
.pnc-popular-header {
  margin-bottom: 32px;
}
.pnc-popular-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.pnc-popular-header p {
  font-size: 14px;
  color: var(--text-sec);
  margin: 0;
}
.pnc-popular-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pnc-popular-card-vertical {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px 20px;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.pnc-popular-card-vertical:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pnc-popular-link-vertical {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.pnc-popular-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pnc-popular-info {
  flex: 1;
}
.pnc-popular-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.pnc-popular-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.pnc-popular-meta-row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.pnc-popular-meta-row svg {
  margin-right: 2px;
}
@media (max-width: 768px) {
  .pnc-popular-page {
    padding: 16px;
  }
  .pnc-popular-card-vertical {
    padding: 16px;
  }
  .pnc-popular-link-vertical {
    flex-direction: column;
    align-items: flex-start;
  }
  .pnc-popular-icon {
    width: 40px;
    height: 40px;
  }
  .pnc-popular-title {
    font-size: 15px;
  }
}

/* ===== Страница профиля ===== */
.pnc-profile-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}
.pnc-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  background: var(--text);
  color: white;
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}
.pnc-profile-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.pnc-profile-avatar {
  position: relative;
  flex-shrink: 0;
}
.pnc-profile-info {
  flex: 1;
}
.pnc-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.pnc-profile-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.pnc-profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pnc-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-sec);
  transition: background 0.12s;
}
.pnc-edit-link:hover {
  background: var(--gray-blue);
}
.pnc-profile-org {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 12px;
}
.pnc-profile-bio {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
  margin: 0;
}
.pnc-profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pnc-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pnc-form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
}
.pnc-form-field input,
.pnc-form-field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-family);
}
.pnc-form-field input:focus,
.pnc-form-field textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-light);
}
.pnc-form-actions {
  display: flex;
  gap: 10px;
}
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.pnc-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.pnc-stat-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pnc-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(126, 207, 197, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pnc-stat-number {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.pnc-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.pnc-profile-tabs-wrapper {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.pnc-profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  gap: 8px;
}
.pnc-profile-tab {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: 0.15s;
}
.pnc-profile-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 600;
}
.pnc-profile-tab-content {
  padding: 24px;
}
.pnc-activity-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.pnc-activity-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}
.pnc-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pnc-activity-details {
  flex: 1;
}
.pnc-activity-details .pnc-activity-title {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
  text-transform: none;
}
.pnc-activity-time {
  font-size: 12px;
  color: var(--text-muted);
}
.pnc-empty-text {
  color: var(--text-sec);
  padding: 20px 0;
}
.pnc-security-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pnc-security-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pnc-security-icon {
  width: 36px;
  height: 36px;
  background: var(--gray-blue);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pnc-security-info {
  flex: 1;
}
.pnc-security-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.pnc-security-value {
  font-size: 14px;
  color: var(--text);
}
.pnc-security-action {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-sec);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.12s;
}
.pnc-security-action:hover {
  background: var(--gray-blue);
}
.pnc-logout-wrapper {
  margin-top: 24px;
}
.pnc-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-sec);
  transition: all 0.12s;
}
.pnc-logout-btn:hover {
  border-color: var(--coral);
  color: #c07060;
  background: var(--coral-light);
}
@media (min-width: 768px) {
  .pnc-profile-page {
    padding: 32px 36px;
  }
  .pnc-profile-card {
    padding: 32px 36px;
  }
  .pnc-profile-header h1 {
    font-size: 26px;
  }
}
@media (max-width: 600px) {
  .pnc-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pnc-profile-header {
    flex-direction: column;
    align-items: center;
  }
  .pnc-profile-org {
    justify-content: center;
  }
  .pnc-profile-stats {
    grid-template-columns: 1fr;
  }
  .pnc-profile-tabs {
    justify-content: center;
  }
  .pnc-security-item {
    flex-wrap: wrap;
  }
  .pnc-security-action {
    margin-left: auto;
  }
}

/* ===== Страница авторизации (Auth) ===== */
.auth-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--cream);
  font-family: var(--font-family);
}
.auth-left-panel {
  background: linear-gradient(
    145deg,
    var(--violet) 0%,
    #7b9fd4 50%,
    var(--teal) 100%
  );
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  color: white;
}
.auth-left-content {
  position: relative;
  z-index: 2;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 40px;
}
.auth-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-logo-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}
.auth-logo-sub {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
}
.auth-left-heading {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}
.auth-left-text {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.6;
}
.auth-benefits {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.benefit-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-bg-decor {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.auth-bg-decor-1 {
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
}
.auth-bg-decor-2 {
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
}
.auth-right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.auth-form-container {
  width: 100%;
  max-width: 420px;
}
.auth-tabs {
  display: flex;
  background: var(--gray-blue);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 32px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  transition: all 0.2s;
}
.auth-tab.active {
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 600;
}
.auth-form h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.auth-form p {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 24px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  margin-bottom: 6px;
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-family);
  transition: 0.15s;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-light);
}
.input-icon {
  position: relative;
}
.input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.input-icon input {
  padding-left: 38px;
}
.forgot-link {
  text-align: right;
  margin-bottom: 24px;
}
.forgot-link a {
  font-size: 13px;
  color: var(--violet);
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  border: none;
  font-family: var(--font-family);
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--teal);
  color: white;
}
.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(126, 207, 197, 0.4);
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-sec);
}
.btn-secondary:hover {
  background: var(--gray-blue);
}
.btn-vk {
  background: #0077ff;
  color: white;
  width: 100%;
  padding: 11px;
}
.btn-vk:hover {
  background: #0065d9;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.info-box {
  background: var(--teal-light);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.info-box p {
  margin: 0;
  font-size: 13px;
  color: var(--teal-dark);
}
.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
}
.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 28px;
}
.auth-footer a {
  color: var(--violet);
  text-decoration: none;
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
}
.modal-content h3 {
  margin-top: 0;
}
.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .auth-root {
    flex-direction: row;
  }
  .auth-left-panel {
    width: 45%;
    padding: 48px 56px;
  }
  .auth-right-panel {
    width: 55%;
    padding: 48px;
  }
  .auth-left-heading {
    font-size: 36px;
  }
  .auth-left-text {
    font-size: 16px;
  }
}

/* ===== Страница сброса пароля ===== */
.pnc-reset-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--cream);
}
.pnc-reset-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.pnc-reset-form-wrapper {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.pnc-reset-form-wrapper h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.pnc-alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
}
.pnc-alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
.pnc-alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.pnc-reset-form {
  margin-top: 20px;
}
.pnc-reset-form .pnc-form-field {
  margin-bottom: 20px;
}
.pnc-reset-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  margin-bottom: 6px;
}
.pnc-reset-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-family);
  transition: 0.15s;
}
.pnc-reset-form input:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-light);
}
.btn-block {
  width: 100%;
}
.pnc-reset-login-link {
  text-align: center;
  margin-top: 24px;
}
.pnc-reset-login-link .btn {
  display: inline-block;
  text-decoration: none;
}
@media (max-width: 480px) {
  .pnc-reset-form-wrapper {
    padding: 20px;
  }
  .pnc-reset-form-wrapper h1 {
    font-size: 24px;
  }
}

/* ===== Страница результатов поиска ===== */
.pnc-search-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
.pnc-search-form {
  margin-bottom: 32px;
}
.pnc-search-input-wrapper {
  position: relative;
  margin-bottom: 16px;
}
.pnc-search-input-wrapper .pnc-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.pnc-search-input-wrapper input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--teal);
  border-radius: 12px;
  font-size: 17px;
  background: var(--white);
  font-family: var(--font-family);
  outline: none;
  transition: 0.15s;
}
.pnc-search-input-wrapper input:focus {
  box-shadow: 0 0 0 4px var(--teal-light);
}
.pnc-search-stats {
  font-size: 13px;
  color: var(--text-muted);
}
.pnc-search-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pnc-filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.pnc-filter-chip-active {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 600;
}
.pnc-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pnc-search-result-card {
  display: flex;
  gap: 18px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: box-shadow 0.15s;
}
.pnc-search-result-card:hover {
  box-shadow: var(--shadow-md);
}
.pnc-result-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pnc-result-content {
  flex: 1;
}
.pnc-result-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pnc-result-cat {
  font-size: 12px;
  color: var(--text-muted);
}
.pnc-result-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.pnc-result-excerpt {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 12px;
  line-height: 1.6;
}
.pnc-result-meta-bottom {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}
.pnc-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.pnc-empty-state svg {
  margin-bottom: 20px;
}
.pnc-empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pnc-empty-state p {
  font-size: 14px;
  color: var(--text-sec);
  max-width: 400px;
  margin: 0 auto 24px;
}
.pnc-empty-suggestions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pnc-suggestion-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  text-decoration: none;
  font-size: 13px;
  color: var(--text-sec);
  transition: background 0.12s;
}
.pnc-suggestion-chip:hover {
  background: var(--gray-blue);
}
@media (min-width: 768px) {
  .pnc-search-page {
    padding: 32px 36px;
  }
  .pnc-search-result-card {
    padding: 20px 24px;
  }
  .pnc-result-title {
    font-size: 17px;
  }
}
@media (max-width: 480px) {
  .pnc-search-result-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .pnc-result-icon {
    width: 40px;
    height: 40px;
  }
  .pnc-result-title {
    font-size: 15px;
  }
  .pnc-result-excerpt {
    font-size: 13px;
  }
}

/* ===== Адаптивность для лендинга (общие медиа-запросы) ===== */
@media (max-width: 1024px) {
  .landing-nav {
    padding: 0 24px;
  }
  .nav-container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }
  .nav-links {
    order: 3;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    width: 100%;
  }
  .slide-title {
    font-size: 44px;
  }
  .slide-subtitle {
    font-size: 16px;
  }
  .section-knowledge,
  .section-about,
  .section-experts,
  .section-news,
  .section-donation {
    padding: 48px 24px;
  }
  .experts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .about-grid {
    gap: 40px;
  }
  .donation-banner {
    padding: 40px 32px;
    flex-direction: column;
    text-align: center;
  }
  .donation-buttons {
    justify-content: center;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .landing-nav {
    padding: 0 16px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 13px;
  }
  .btn-cream,
  .btn-primary {
    padding: 6px 12px;
    font-size: 12px;
  }
  .hero-slider {
    margin-top: 0;
  }
  .slide {
    padding: 110px 0 60px;
  }
  .slide-title {
    font-size: 32px;
  }
  .slide-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .slide-buttons .btn-primary,
  .slide-buttons .btn-outline-light {
    padding: 10px 20px;
    font-size: 14px;
  }
  .slider-controls {
    bottom: 20px;
  }
  .dot {
    width: 6px;
    height: 6px;
  }
  .dot.active {
    width: 20px;
  }
  .slider-arrow {
    width: 32px;
    height: 32px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }
  .stat-item {
    padding: 20px;
    border-right: none;
    justify-content: center;
    text-align: center;
  }
  .stat-number {
    font-size: 28px;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .section-header p {
    font-size: 14px;
  }
  .with-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .with-action .btn-ghost {
    margin-left: 0;
  }
  .experts-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .category-card,
  .expert-card,
  .news-card {
    padding: 20px;
  }
  .category-icon {
    width: 44px;
    height: 44px;
  }
  .category-label {
    font-size: 16px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-text h2 {
    font-size: 28px;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .donation-banner {
    padding: 32px 20px;
  }
  .donation-banner h2 {
    font-size: 28px;
  }
  .donation-banner p {
    font-size: 15px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .slide-title {
    font-size: 24px;
  }
  .slide-badge {
    font-size: 11px;
    padding: 3px 10px;
  }
  .stat-item {
    flex-direction: column;
    text-align: center;
  }
  .stat-icon {
    margin-bottom: 8px;
  }
  .btn-ghost {
    padding: 6px 12px;
    font-size: 13px;
  }
  .logo {
    width: 100%;
  }
}
/* Бургер-меню для лендинга */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: white;
}
.scrolled .burger-menu {
  color: var(--text);
}
.burger-menu svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-container {
    position: relative;
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    background: rgba(253, 248, 240, 0.98);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 12px;
    margin-top: 12px;
    gap: 16px;
    text-align: center;
  }
  .nav-container.nav-open .nav-links {
    display: flex;
  }
  .nav-links .nav-link {
    color: var(--text);
    font-size: 16px;
    padding: 8px;
  }
  .nav-buttons {
    order: 1;
    margin-left: auto;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .nav-buttons .btn-cream,
  .nav-buttons .btn-primary {
    padding: 6px 10px;
    font-size: 12px;
  }
  .burger-menu svg {
    width: 24px;
    height: 24px;
  }
}
/* ===== Стили для дашборда (старые классы pnc-*) ===== */
.pnc-dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 36px;
  background: var(--cream);
}
.pnc-welcome {
  margin-bottom: 36px;
}
.pnc-welcome h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.pnc-welcome p {
  font-size: 15px;
  color: var(--text-sec);
  margin: 0;
}
.pnc-welcome-new {
  color: var(--teal-dark);
}
.pnc-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.pnc-cat-tile {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 20px;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pnc-cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pnc-cat-tile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.pnc-cat-count {
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
}
.pnc-cat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.pnc-two-columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
}
.pnc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.pnc-section-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.pnc-section-link {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.pnc-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pnc-list-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px 18px;
  cursor: pointer;
}
.pnc-list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pnc-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gray-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pnc-item-content {
  flex: 1;
}
.pnc-item-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.pnc-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.pnc-item-date {
  font-size: 11px;
  color: var(--text-muted);
}
.pnc-popular-list {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.pnc-popular-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
}
.pnc-popular-item:hover {
  background: var(--cream);
}
.pnc-rank {
  font-size: 20px;
  font-weight: 700;
  color: var(--border);
  min-width: 24px;
}
.pnc-popular-title {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}
.pnc-popular-stats {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.pnc-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.pnc-favorites-list {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.pnc-favorite-item {
  padding: 14px 20px;
  cursor: pointer;
}
.pnc-empty {
  padding: 14px 20px;
  text-align: center;
  color: var(--text-sec);
}
.pnc-recommendations {
  margin-top: 24px;
}
.pnc-recommend-inner {
  background: linear-gradient(135deg, var(--violet-light), var(--teal-light));
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--lavender);
}
.pnc-recommend-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.pnc-recommend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--lavender);
}
.pnc-recommend-item:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .pnc-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pnc-two-columns {
    grid-template-columns: 1fr;
  }
  .pnc-dashboard-container {
    padding: 20px;
  }
}
/* ===== Приватная зона (сайдбар и хедер) ===== */
.pnc-private-layout {
  display: flex;
  min-height: 100vh;
  background: var(--cream);
}

/* Сайдбар – десктопная версия */
.pnc-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

/* Логотип в сайдбаре */
.pnc-sidebar-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.pnc-sidebar-logo-link svg {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  padding: 8px;
  flex-shrink: 0;
}
/* Контейнер для текста (вертикальная колонка) */
.pnc-sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sidebar-logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.sidebar-logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Навигация */
.pnc-sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.pnc-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 2px;
  text-decoration: none;
  color: var(--text-sec);
  transition: background 0.12s;
}
.pnc-sidebar-item.active {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
}
.pnc-sidebar-item:hover {
  background: var(--gray-blue);
}
.pnc-sidebar-active-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--teal);
}
.pnc-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 4px;
}

/* Кнопка "Свернуть" прижата к низу */
.pnc-sidebar-toggle {
  flex-shrink: 0;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}
.pnc-toggle-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text-muted);
}
.pnc-toggle-button:hover {
  background: var(--gray-blue);
}

/* Состояние свёрнутого сайдбара (ширина 68px) */
.pnc-sidebar.collapsed {
  width: 68px;
}
.pnc-sidebar.collapsed .sidebar-logo-text,
.pnc-sidebar.collapsed .sidebar-logo-sub,
.pnc-sidebar.collapsed .sidebar-nav-text,
.pnc-sidebar.collapsed #toggle-text {
  display: none;
}
.pnc-sidebar.collapsed .pnc-sidebar-logo-link {
  justify-content: center;
}
.pnc-sidebar.collapsed .pnc-sidebar-item {
  justify-content: center;
  padding: 11px 0;
}

/* Мобильная версия сайдбара (выезжающая) */
@media (max-width: 768px) {
  .pnc-sidebar {
    position: fixed;
    left: -280px;
    width: 280px;
    height: 100%;
    z-index: 1000;
    transition: left 0.3s ease;
    top: 0;
  }
  .pnc-sidebar.open {
    left: 0;
  }
  .pnc-sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .pnc-sidebar-logo {
    padding: 16px;
  }
  .admin-bar .pnc-sidebar {
    top: 46px;
    height: calc(100% - 46px);
  }
}

/* Коррекция для админ-панели на десктопе */
.admin-bar .pnc-sidebar {
  height: calc(100vh - 32px);
  top: 32px;
}
/* ===== Страница материала базы знаний ===== */
.pnc-article-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--cream);
}
.pnc-article-main {
  flex: 1;
  padding: 20px;
}
.pnc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pnc-breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}
.pnc-article-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pnc-tag {
  display: inline-block;
  background: var(--violet-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--violet);
  text-decoration: none;
  transition: background 0.15s;
}
.pnc-tag:hover {
  background: var(--violet);
  color: white;
}
.pnc-article-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.pnc-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.pnc-article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pnc-article-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.pnc-article-author span {
  font-size: 14px;
  font-weight: 600;
}
.pnc-article-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.pnc-article-stats svg {
  margin-right: 4px;
}
.pnc-article-favorite {
  margin-left: auto;
}
.pnc-fav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
}
.pnc-fav-button.favorited {
  background: var(--violet-light);
  border-color: var(--violet);
  color: var(--violet);
}
.pnc-article-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.pnc-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: 0.15s;
}
.pnc-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 600;
}
.pnc-article-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  max-width: 720px;
}
.pnc-materials-placeholder {
  background: var(--gray-blue);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}
.pnc-author-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  gap: 20px;
}
.pnc-author-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.pnc-author-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.pnc-author-bio {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 8px;
}
.pnc-article-sidebar {
  padding: 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.pnc-article-sidebar h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 20px;
}
.pnc-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pnc-related-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pnc-related-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pnc-related-content {
  flex: 1;
}
.pnc-related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}

/* Адаптивность для статьи */
@media (min-width: 768px) {
  .pnc-article-page {
    flex-direction: row;
  }
  .pnc-article-main {
    padding: 36px 40px;
  }
  .pnc-article-sidebar {
    width: 280px;
    border-left: 1px solid var(--border);
    border-top: none;
    padding: 36px 20px;
  }
  .pnc-article-title {
    font-size: 30px;
  }
}
@media (max-width: 767px) {
  .pnc-article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .pnc-article-favorite {
    margin-left: 0;
  }
  .pnc-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .pnc-tab {
    padding: 8px 12px;
    font-size: 13px;
  }
}
/* ===== Адаптивность страницы материалов (page-materials.php) ===== */
/* Базовые стили (десктоп) */
.pnc-materials-page {
  display: flex;
  gap: 0;
  min-height: 100%;
  background: var(--cream);
}
.pnc-materials-content {
  flex: 1;
  padding: 28px 32px;
}
.pnc-materials-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.pnc-materials-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.pnc-materials-list.grid-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
/* Стили карточек (как у вас уже есть) */
.pnc-material-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  border: 1px solid var(--border);
}
.pnc-material-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pnc-material-cover {
  height: 120px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pnc-material-icon svg {
  width: 52px;
  height: 52px;
}
.pnc-material-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}
.pnc-material-info {
  padding: 16px 18px;
}
.pnc-material-title {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
}
.pnc-material-meta {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
  .pnc-materials-list.grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
  .pnc-materials-content {
    padding: 24px;
  }
}

/* Адаптация для мобильных (ширина до 768px) */
@media (max-width: 768px) {
  .pnc-materials-page {
    flex-direction: column;
  }
  .pnc-materials-filters {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 24px;
  }
  .pnc-filter-group {
    flex-shrink: 0;
  }
  .pnc-filter-item {
    display: inline-block;
    margin-right: 8px;
    background: var(--gray-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
  }
  .pnc-materials-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pnc-materials-actions {
    justify-content: space-between;
  }
  .pnc-materials-list.grid-view {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pnc-material-card {
    max-width: 100%;
  }
  .pnc-materials-content {
    padding: 20px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .pnc-materials-filters {
    padding: 8px 12px;
  }
  .pnc-materials-content {
    padding: 16px;
  }
  .pnc-material-info {
    padding: 12px;
  }
  .pnc-material-title {
    font-size: 13px;
  }
}
/* Коррекция для админ-панели WordPress на главной странице */
.admin-bar .landing-nav {
  top: 32px; /* высота админ-панели на десктопе */
}
.admin-bar .hero-slider {
  margin-top: 0; /* или можно добавить padding-top, но обычно достаточно сдвинуть хедер */
}
/* Для слайдера, если хедер фиксированный, контент под ним должен иметь отступ */
/* У нас уже есть .slide { padding-top: 140px; } – этого достаточно, но для админ-панели увеличим */
.admin-bar .slide {
  padding-top: calc(
    140px + 32px
  ); /* компенсируем высоту хедера + админ-панель */
}
@media (max-width: 782px) {
  .admin-bar .landing-nav {
    top: 46px; /* высота админ-панели на мобильных */
  }
  .admin-bar .slide {
    padding-top: calc(140px + 46px);
  }
}
/* Мобильный поиск – затемнённый фон, поле ввода в верхней части */
.pnc-mobile-search-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.3s,
    opacity 0.3s;
}
.pnc-mobile-search-panel.open {
  visibility: visible;
  opacity: 1;
}
.pnc-mobile-search-container {
  background: var(--white);
  padding: 20px;
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.pnc-mobile-search-panel.open .pnc-mobile-search-container {
  transform: translateY(0);
}
/* Учитываем админ-панель */
.admin-bar .pnc-mobile-search-container {
  margin-top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .pnc-mobile-search-container {
    margin-top: 46px;
  }
}
.pnc-mobile-search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pnc-mobile-search-form input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  outline: none;
}
.pnc-mobile-search-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}
.pnc-mobile-search-form button[type="submit"] {
  background: var(--teal);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 500;
  cursor: pointer;
}
/* Кнопка-лупа в хедере */
.pnc-mobile-search-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background 0.12s;
}
.pnc-mobile-search-toggle:hover {
  background: var(--gray-blue);
}
@media (max-width: 768px) {
  .desktop-search {
    display: none;
  }
  .pnc-mobile-search-toggle {
    display: inline-flex;
  }
  .pnc-header-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }
}
@media (min-width: 769px) {
  .pnc-mobile-search-toggle,
  .pnc-mobile-search-panel {
    display: none;
  }
}
/* Поле ввода в модальном окне */
#reset-email {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-family);
  background: var(--white);
  transition: 0.15s;
}
#reset-email:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-light);
}
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.category-card {
  flex: 1 1 calc(20% - 20px); /* 5 колонок с учётом gap */
  min-width: 150px; /* чтобы не сжимались слишком сильно */
}
@media (max-width: 768px) {
  .category-card {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (max-width: 480px) {
  .category-card {
    flex: 1 1 100%;
  }
}
.password-wrapper {
  position: relative;
  width: 100%;
}
.password-wrapper input {
  padding-right: 40px;
  width: 100%;
}
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== Страница контактов ===== */
.pnc-contacts-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.pnc-contacts-header {
  text-align: center;
  margin-bottom: 40px;
}
.pnc-contacts-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.pnc-contacts-header p {
  font-size: 16px;
  color: var(--text-sec);
}
.pnc-contacts-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.pnc-contacts-info {
  flex: 1;
  min-width: 280px;
}
.pnc-contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pnc-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pnc-contact-details h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.pnc-contact-details a,
.pnc-contact-details p {
  color: var(--teal-dark);
  text-decoration: none;
  font-size: 14px;
}
.pnc-contact-map {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 20px;
}
.pnc-contact-map h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}
.pnc-contact-map iframe {
  border-radius: 8px;
}
.pnc-contacts-form {
  flex: 1;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow);
}
.pnc-contacts-form h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
/* Стили для формы Contact Form 7 (если используется) */
.wpcf7-form .wpcf7-form-control {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-family);
}
.wpcf7-form .wpcf7-submit {
  background: var(--teal);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.wpcf7-form .wpcf7-submit:hover {
  background: var(--teal-dark);
}
@media (max-width: 768px) {
  .pnc-contacts-wrapper {
    flex-direction: column;
  }
  .pnc-contacts-page {
    padding: 20px;
  }
}
/* Публичный хедер – стиль по умолчанию (светлый фон, тёмный текст) */
.landing-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.landing-nav .logo-title,
.landing-nav .logo-sub,
.landing-nav .burger-menu svg {
  color: var(--text);
}
.landing-nav .nav-link {
  color: var(--text-sec);
}
.landing-nav .nav-link:hover {
  color: var(--text);
}
.landing-nav .btn-cream {
  background: var(--gray-blue);
  color: var(--text);
}
.landing-nav .btn-primary {
  background: var(--teal);
  color: white;
}

/* Главная страница (лендинг) – прозрачный фон, белый текст */
.home .landing-nav {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
.home .landing-nav .logo-title,
.home .landing-nav .logo-sub,
.home .landing-nav .burger-menu svg,
.home .landing-nav .nav-link {
  color: white;
}
.home .landing-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}
.home .landing-nav .nav-link:hover {
  color: white;
}
.home .landing-nav .btn-cream {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}
.home .landing-nav .btn-primary {
  background: var(--teal);
  color: white;
}

/* При скролле на главной – фон меняется на светлый */
.home .landing-nav.scrolled {
  background: rgba(253, 248, 240, 0.96);
  border-bottom: 1px solid var(--border);
}
.home .landing-nav.scrolled .logo-title,
.home .landing-nav.scrolled .logo-sub,
.home .landing-nav.scrolled .nav-link {
  color: var(--text);
}
.home .landing-nav.scrolled .nav-link {
  color: var(--text-sec);
}
.home .landing-nav.scrolled .btn-cream {
  background: rgba(255, 255, 255, 0.9);
}
/* Отступ для контента на страницах с публичным хедером (не главная) */
body:not(.home) .site-main {
    padding-top: 80px; /* высота хедера + запас */
}
/* Для приватных страниц отступ не нужен (там своя вёрстка) */
.pnc-private-content {
    padding-top: 0;
}