/* ============================================
   FONT-FACE
   ============================================ */
@font-face {
  font-family: 'Мирослав';
  src: url('fonts/Мирослав Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Мирослав';
  src: url('fonts/Мирослав Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Bannikova font */
@font-face {
  font-family: 'Bannikova';
  src: url('fonts/bannikova/Bannikova.eot');
  src: local('Bannikova'),
      url('fonts/bannikova/Bannikova.eot?#iefix') format('embedded-opentype'),
      url('fonts/bannikova/Bannikova.woff2') format('woff2'),
      url('fonts/bannikova/Bannikova.woff') format('woff'),
      url('fonts/bannikova/Bannikova.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bannikova';
  src: url('fonts/bannikova/BannikovaBold.eot');
  src: local('Bannikova Bold'), local('BannikovaBold'),
      url('fonts/bannikova/BannikovaBold.eot?#iefix') format('embedded-opentype'),
      url('fonts/bannikova/BannikovaBold.woff2') format('woff2'),
      url('fonts/bannikova/BannikovaBold.woff') format('woff'),
      url('fonts/bannikova/BannikovaBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bannikova';
  src: url('fonts/bannikova/BannikovaItalic.eot');
  src: local('Bannikova Italic'), local('BannikovaItalic'),
      url('fonts/bannikova/BannikovaItalic.eot?#iefix') format('embedded-opentype'),
      url('fonts/bannikova/BannikovaItalic.woff2') format('woff2'),
      url('fonts/bannikova/BannikovaItalic.woff') format('woff'),
      url('fonts/bannikova/BannikovaItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --beta-font-sans: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --beta-font-serif: Georgia, "Times New Roman", Times, serif;
  --beta-font-display: "Yeseva One", Georgia, "Times New Roman", serif;
  --bird-gap: clamp(160px, 2.5vw, 70px);
  --beta-container: 1040px;
  --beta-gap: 18px;
  --beta-cream: #f9f4ec;
  --beta-red: #c02828;
  --beta-blue: #3a7dcc;
  --beta-brown: #7a411f;
  --beta-border: #ddcfc0;
  --beta-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   BASE STYLES
   ============================================ */
html,
body {
  font-family: var(--beta-font-serif);
  text-rendering: geometricPrecision;
  background: var(--beta-cream);
  color: #1b1b1b;
  scroll-behavior: smooth;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
.slogan,
.title-main,
.our_books .tit,
.box_adv .tit,
.key {
  font-family: 'Bannikova', 'Мирослав', var(--beta-font-display), Georgia, serif;
}

a {
  color: var(--beta-brown);
}

.bs_menu {
  display: none;
}

/* ============================================
   HEADER
   ============================================ */
.page-bg {
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.95), rgba(246, 241, 233, 0.95)), linear-gradient(#f8f5f1, #f2ece4 70%, #f7f2ea);
  padding-bottom: 28px;
  margin: 0 auto;
}

.hero {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 12px 24px;
  position: relative;
  min-height: 200px;
  overflow: visible;
  box-sizing: border-box;
}

.hero-inner {
  position: relative;
  width: 100%;
  min-height: 181px;
  overflow: visible;
}

/* Десктопная версия - возвращаем обычное позиционирование */
@media (min-width: 1101px) {
  .hero-inner {
    display: block;
    position: relative;
    min-height: 230px; /* Увеличил с 181px: место для логотипа + подзаголовок + отступ */
}

.hero-left {
    position: absolute;
    left: 0;
    top: 0;
}

.hero-right {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .icon-nav {
  position: relative;
    width: auto;
    margin-top: 0;
    padding-top: 20px;
    clear: both;
  }
}

.hero-left {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  max-width: calc(100% - 280px);
}

.logo-subtitle {
  font-family: 'Bannikova', 'Мирослав', 'Yeseva One', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: #8b4513;
  line-height: 1.4;
  margin-top: 8px;
  max-width: 100%;
  word-wrap: break-word;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.logo {
  display: block;
  width: 100%;
}

.logo img {
  display: block;
  width: 397px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.hero-right {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  max-width: 260px;
  overflow: hidden;
}

.hero .search {
  margin-top: 0;
}

.search .i-txt label {
  color: #6f6f6f;
  font-size: 12px;
}

.search input {
  font-family: var(--beta-font-serif);
  caret-color: auto;
}

.hero input {
  caret-color: transparent;
  outline: none;
}

.hero input:focus {
  caret-color: auto;
}

/* Переопределяем старые стили птиц */
.hero-inner .bird,
.hero .bird {
  background: none !important;
  background-image: none !important;
  width: auto !important;
  height: auto !important;
}

.logo-wrap {
  position: relative;
  display: inline-block;
}

.bird {
  position: absolute;
  z-index: 1;
  animation: bird-float 4s ease-in-out infinite;
  image-rendering: auto;
  pointer-events: none;
  max-width: 60px; /* Ограничиваем размер */
}

.bird-a {
  left: calc(100% + var(--bird-gap));
  top: clamp(8px, 2vw, 18px);
  width: 50px;
  height: auto;
  animation-delay: 0.2s;
}

.bird-b {
  left: calc(100% + (var(--bird-gap) * 2.2));
  top: clamp(55px, 7vw, 95px);
  width: 40px;
  height: auto;
  animation-delay: 0.6s;
}

/* Адаптируем птиц для мобильных */
@media (max-width: 1100px) {
  :root {
    --bird-gap: clamp(18px, 2.5vw, 36px);
  }

  .bird {
    position: absolute;
    max-width: 35px;
    height: auto;
    z-index: 2;
  }
  
  .bird-a {
    top: clamp(6px, 2vw, 14px);
    width: 35px;
  }

  .bird-b {
    top: clamp(40px, 6vw, 70px);
    width: 30px;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.icon-nav {
  margin-top: 10px;
}

.icon-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.icon-nav li a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--beta-red);
  text-decoration: none;
  font-size: 13px;
}

.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--beta-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fffefc 0%, #f2e5d8 100%);
}

.icon-img {
  max-width: 26px;
  max-height: 26px;
  display: block;
}

.icon-label {
  text-align: center;
  line-height: 1.2;
}

.icon-nav li a:hover .icon-circle {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Color accents per item */
.nav-home .icon-circle { background: linear-gradient(180deg, #e5f1ff 0%, #c9e3ff 100%); }
.nav-about .icon-circle { background: linear-gradient(180deg, #ffe9e3 0%, #ffffff 100%); }
.nav-partners .icon-circle { background: linear-gradient(180deg, #fff3d6 0%, #ffe3a8 100%); }
.nav-contest .icon-circle { background: linear-gradient(180deg, #e9f6de 0%, #d1ecb7 100%); }
.nav-quiz .icon-circle { background: linear-gradient(180deg, #e5f0ff 0%, #cfdfff 100%); }
.nav-books .icon-circle { background: linear-gradient(180deg, #fbe9ff 0%, #f1d6ff 100%); }
.nav-archive .icon-circle { background: linear-gradient(180deg, #e6f7f8 0%, #c6edf0 100%); }
.nav-contacts .icon-circle { background: linear-gradient(180deg, #ffecec 0%, #ffcfd1 100%); }

/* ============================================
   CONTENT LAYOUT
   ============================================ */
.page-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0 12px;
  margin: 0 auto 48px auto;
  position: relative;
  box-sizing: border-box;
}

#content.single-column {
  display: block;
  max-width: 960px;
  margin: 0 auto;
  padding-top: 12px;
}

.page-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 22px;
  box-shadow: none;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.section-title {
  font-family: 'Bannikova', 'Мирослав', var(--beta-font-display), Georgia, serif;
  text-align: center;
  color: #8b1f1f;
  margin-bottom: 18px;
}

.para {
  font-size: 15px;
  line-height: 1.55;
  color: #1a1a1a;
}

.para.center {
  text-align: center;
}

.para a {
  color: #8b1f1f;
  text-decoration: underline;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content .para {
  margin-bottom: 20px;
  text-align: left;
}

.about-content .para strong {
  color: var(--beta-brown);
  font-weight: 600;
}

.section-subtitle {
  font-family: 'Bannikova', 'Мирослав', var(--beta-font-display);
  font-size: 22px;
  color: var(--beta-red);
  margin: 35px 0 18px 0;
  text-align: left;
  position: relative;
  padding-left: 18px;
}

.section-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--beta-red);
  border-radius: 50%;
}

.para.highlight {
  background: linear-gradient(135deg, #fef9f3 0%, #fef5eb 100%);
  border-left: 4px solid var(--beta-red);
  padding: 18px 22px;
  border-radius: 8px;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.para.highlight strong {
  color: var(--beta-red);
  font-size: 1.1em;
}

/* ============================================
   COMPONENTS
   ============================================ */
.news-card {
  background: #fff;
  border: 1px solid var(--beta-border);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--beta-shadow);
  font-size: 13px;
}

.news-title {
  color: var(--beta-red);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-item {
  color: #4a2f1d;
  line-height: 1.4;
}

.news-item a {
  color: #8b1f1f;
}

.news-divider {
  border-top: 1px solid #e2cfc1;
  margin: 10px 0;
}

.news-footer {
  margin-top: 12px;
}

.news-footer a {
  color: #8b1f1f;
  text-decoration: none;
  position: relative;
}

.news-footer a::after,
.news-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.news-footer a:hover::after,
.news-item a:hover::after {
  width: 100%;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: var(--beta-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.social-btn.yt { background: #ff0000; }
.social-btn.vk { background: #2d81e0; }

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Reserve for gallery & cartoons */
.competition-gallery,
.cartoons-section {
  margin-top: 24px;
}

.cartoons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.cartoon-card {
  background: #fff;
  border: 1px solid var(--beta-border);
  border-radius: 6px;
  padding: 10px;
  box-shadow: var(--beta-shadow);
}

.cartoon-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #f1ebe4;
}

.cartoon-title {
  margin-top: 8px;
  font-weight: 700;
  color: #4a2f1d;
  font-size: 14px;
}

.cartoon-meta {
  font-size: 12px;
  color: #6b6b6b;
}

/* ============================================
   NEWS WIDGET (STICKY)
   ============================================ */
.news-widget {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 8px;
  box-shadow: none;
  z-index: 500;
  max-height: 400px;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(2px);
}

body.side-nav-active .news-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(100px);
}

/* На мобильных устройствах виджет не должен скрываться при активной навигации */
@media (max-width: 900px) {
  body.side-nav-active .news-widget.is-visible-mobile {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) !important;
  }
}

.news-widget-header {
  background: transparent;
  color: inherit;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.news-widget-header h4 {
  margin: 0;
  font-size: 16px;
  font-family: var(--beta-font-display);
  font-weight: 600;
  color: inherit;
}

.news-widget-header h4 a {
  color: inherit;
}

.news-widget-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-widget-toggle::before {
  content: '−';
}

.news-widget-body {
  padding: 12px 16px;
  max-height: 340px;
  overflow-y: auto;
}

.news-item {
  border-bottom: 1px solid rgba(139, 115, 85, 0.1);
  padding: 12px 0;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item h5 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-family: var(--beta-font-display);
  color: inherit;
  font-weight: 600;
}

.news-item h5 a {
  color: inherit;
}

.news-item p {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.4;
  color: inherit;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.4em * 3);
}

.news-placeholder {
  margin: 0;
  padding: 20px 10px;
  text-align: center;
  font-size: 13px;
  color: #999;
  font-style: italic;
}

.news-read-more {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(139, 115, 85, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.news-read-more:hover {
  border-color: rgba(139, 115, 85, 0.5);
  background: rgba(139, 115, 85, 0.05);
}

.news-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.news-modal.is-open {
  display: block;
}

.news-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.news-modal-content {
  position: relative;
  max-width: 700px;
  margin: 50px auto;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1001;
}

.news-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.news-modal-close:hover {
  color: var(--beta-red);
}

.news-modal-title {
  margin: 0 40px 12px 0;
  font-family: var(--beta-font-display);
  font-size: 24px;
  color: var(--beta-brown);
}

.news-modal-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

.news-modal-body {
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
}

/* Responsive */
@media (max-width: 1200px) {
  .news-widget {
    right: 10px;
    width: 240px;
  }
}

@media (max-width: 900px) {
  .news-widget {
    position: fixed !important; /* Фиксирует виджет относительно viewport (видимой области экрана) */
    right: auto !important;
    left: 50% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important; /* Центрирование относительно viewport */
    width: 90%;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    /* Увеличиваем непрозрачность фона для читаемости */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .news-widget.is-visible-mobile {
    opacity: 1;
    visibility: visible;
  }
  
  /* Стили для читаемости текста в мобильной версии */
  .news-widget {
    color: #1a1a1a !important;
  }
  
  .news-widget-header {
    background: rgba(139, 115, 85, 0.1) !important;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2) !important;
  }
  
  .news-widget-header h4,
  .news-widget-header h4 a {
    color: #4a2f1d !important;
  }
  
  .news-item h5,
  .news-item h5 a {
    color: #4a2f1d !important;
  }
  
  .news-item p {
    color: #333 !important;
    opacity: 1 !important;
  }
  
  .news-read-more {
    color: #8b1f1f !important;
  }
  
  /* Затемнение фона для мобильного виджета */
  .news-widget-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
  }
  
  .news-widget-overlay.is-visible {
    display: block;
  }
  
  /* Кнопка закрытия на мобильном */
  .news-widget-close-mobile {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 115, 85, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    z-index: 1;
  }
  
  .news-modal-content {
    margin: 30px 20px;
    padding: 24px;
  }
}

/* ============================================
   SIDE NAVIGATION (STICKY) - Минималистичный стиль
   ============================================ */
.side-nav {
  position: fixed;
  right: clamp(16px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%) translateX(80px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.4s;
  
  background: none;
  border: none;
  border-radius: 24px;
  padding: 10px 6px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.side-nav.nav-sticky {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-nav li {
  position: relative;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #8b1f1f;
  text-decoration: none;
  font-size: 13px;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9),
               0 0 8px rgba(255, 255, 255, 0.8);
}

.side-nav a:hover {
  background: rgba(192, 40, 40, 0.1);
  transform: scale(1.15);
}

.side-nav a.is-active {
  background: linear-gradient(135deg, rgba(192, 40, 40, 0.15), rgba(192, 40, 40, 0.08));
}

.side-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.side-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-nav a:hover .side-icon img {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(192, 40, 40, 0.3));
}

.side-nav a.is-active .side-icon img {
  filter: drop-shadow(0 2px 6px rgba(192, 40, 40, 0.4));
}

.side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c02828;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(192, 40, 40, 0.6);
}

.side-nav a:hover .side-dot {
  background: rgba(192, 40, 40, 0.6);
  transform: scale(1.2);
}

.side-nav a.is-active .side-dot {
  background: #8b1f1f;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(139, 31, 31, 0.8),
              0 0 0 3px rgba(192, 40, 40, 0.15);
}

/* Tooltip при наведении */
.side-label {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(107, 93, 74, 0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.side-label::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(107, 93, 74, 0.95);
}

.side-nav a:hover .side-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0.3s;
}

/* ============================================
   FEEDBACK FORM
   ============================================ */
.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #4a2f1d;
}

.feedback-label input,
.feedback-label textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--beta-border);
  border-radius: 6px;
  font-family: var(--beta-font-serif);
  font-size: 14px;
}

.feedback-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4a2f1d;
}

.feedback-submit {
  align-self: start;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #c02828;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--beta-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.feedback-status {
  font-size: 13px;
  color: #4a2f1d;
  min-height: 18px;
}

/* Inline feedback inside announcement */
.announcement-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.feedback-inline {
  display: inline-block;
  margin: 0;
}

.feedback-inline-btn {
  display: none;
  padding: 8px 16px;
  background: var(--beta-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--beta-shadow);
}

.feedback-inline-btn:hover {
  background: #306bbd;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.feedback-inline-btn:active {
  transform: translateY(0);
}

.feedback-counter {
  display: none;
  margin-left: 12px;
  font-size: 14px;
  color: #5a5a5a;
  font-weight: 500;
}

.feedback-counter #feedbackCountDisplay {
  font-weight: 700;
  color: var(--beta-red);
  font-size: 16px;
}

/* Partners Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.partner-card {
  background: #fffefc;
  border: 1px solid var(--beta-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--beta-shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.partner-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f2ece4 0%, #d7c6b7 100%);
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.partner-photo::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.partner-name {
  font-family: var(--beta-font-display);
  font-size: 18px;
  color: var(--beta-brown);
  margin: 0 0 10px 0;
}

.partner-contribution {
  font-family: var(--beta-font-serif);
  font-size: 14px;
  color: #5a5a5a;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  :root {
    --logo-width: 260px;
  }
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .announcement-footer {
    flex-direction: column;
    gap: 10px;
  }
  .section-subtitle {
    font-size: 18px;
    margin: 25px 0 15px 0;
    padding-left: 15px;
  }
  .section-subtitle::before {
    width: 6px;
    height: 6px;
  }
  .para.highlight {
    padding: 15px 18px;
    margin: 20px 0;
  }
  .about-content .para {
    margin-bottom: 16px;
    font-size: 14px;
  }
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.book-card {
  background: #fffefc;
  border: 1px solid var(--beta-border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--beta-shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e6dccf;
  background: #f4eee5;
}

.book-cover-btn {
  display: block;
  padding: 0;
  margin: 0 0 10px 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
}

.book-title {
  font-family: var(--beta-font-display);
  font-size: 15px;
  color: var(--beta-brown);
  line-height: 1.3;
  min-height: 38px;
}

@media (max-width: 1200px) {
  .books-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1000px) {
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}

/* Book modal (zoom) */
.book-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12000;
}

.book-modal.is-open {
  display: flex;
}

.book-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.book-modal__dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #fffefc;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.book-modal__dialog img {
  max-width: 86vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e6dccf;
  background: #f4eee5;
}

.book-modal__title {
  font-family: var(--beta-font-display);
  font-size: 16px;
  color: var(--beta-brown);
  text-align: center;
}

.book-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: #2d1a0f;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
}

.book-modal__close:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ============================================
   CARTOONS
   ============================================ */
.cartoons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.cartoon-card {
  background: #fffefc;
  border: 1px solid var(--beta-border);
  border-radius: 10px;
  box-shadow: var(--beta-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cartoon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cartoon-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #f2ece4;
  overflow: hidden;
}

.cartoon-thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.cartoon-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cartoon-title {
  font-family: 'Мирослав', var(--beta-font-display);
  font-size: 18px;
  color: var(--beta-brown);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cartoon-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.cartoon-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.cartoon-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  font-family: var(--beta-font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
  text-decoration: none;
  box-shadow: var(--beta-shadow);
}

.cartoon-open:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Responsive adjustments for cartoons */
@media (max-width: 1024px) {
  .cartoons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .cartoons-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cartoon-title {
    font-size: 16px;
  }
  .cartoon-desc {
    font-size: 13px;
  }
  .cartoon-open {
    padding: 7px 12px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }
}
/* ============================================
   QUIZ - Скрыто
   ============================================ */
#quiz {
  display: none !important;
}

/* ============================================
   QUIZ (старые стили - скрыто)
   ============================================ */
.quiz-card {
  background: #fffefc;
  border: 1px solid var(--beta-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--beta-shadow);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #8b1f1f;
}

.quiz-body {
  display: grid;
  gap: 12px;
}

.quiz-question {
  font-size: 16px;
  line-height: 1.5;
  color: #2f1c10;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--beta-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  font-size: 15px;
  text-align: left;
}

.quiz-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: #d9c7b7;
}

.quiz-option.is-correct {
  border-color: #5ea160;
  background: #f1faef;
}

.quiz-option.is-wrong {
  border-color: #c02828;
  background: #fff2f2;
}

.quiz-option.disabled {
  pointer-events: none;
  opacity: 0.85;
}

/* Анимации для ответов */
@keyframes quiz-correct-blink {
  0% { background: #f1faef; }
  50% { background: #d7f4d9; }
  100% { background: #f1faef; }
}

@keyframes quiz-wrong-blink {
  0% { background: #fff2f2; }
  50% { background: #ffd9d9; }
  100% { background: #fff2f2; }
}

@keyframes quiz-scale {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.quiz-option.is-correct.animating {
  animation: quiz-correct-blink 0.6s ease, quiz-scale 0.6s ease;
}

.quiz-option.is-wrong.animating {
  animation: quiz-wrong-blink 0.6s ease, quiz-scale 0.6s ease;
}

.quiz-next,
.quiz-start {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: var(--beta-shadow);
  align-self: flex-start;
}

.quiz-next {
  background: #c02828;
  color: #fff;
  display: none; /* скрыта до ответа */
}

.quiz-start {
  background: #2d81e0;
  color: #fff;
}

.quiz-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quiz-next:hover:not(:disabled),
.quiz-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.quiz-result {
  font-size: 14px;
  color: #2f1c10;
  min-height: 18px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes bird-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  :root {
    --logo-width: 360px;
  }
  .hero {
    min-height: auto;
    padding-bottom: 16px; /* Отступ снизу для меню */
  }
  
  .hero-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 0; /* Убрали отступ т.к. навигация теперь внутри */
    position: relative;
    overflow: visible;
  }
  
  .hero-left {
    position: relative;
    left: auto;
    top: auto;
    text-align: left;
    width: 100%;
    max-width: 100%;
    z-index: 1; /* Ниже навигации */
  }
  
  .logo {
    display: block;
    width: fit-content;
  }
  
  .logo img {
    width: min(360px, 100%);
    height: auto;
    display: block;
  }
  
  .logo-subtitle {
    font-family: 'Bannikova', 'Мирослав', 'Yeseva One', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    color: #8b4513;
    text-align: left;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
  }
  
  .hero-right {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 0;
  }
  
  .icon-nav {
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 10;
    clear: both;
  }
  
  #content {
    grid-template-columns: 1fr;
  }
  
  #c-right {
    margin-top: var(--beta-gap);
  }
  
  /* Птицы остаются видимыми, но меньше */
  .bird {
    max-width: 35px;
  }
  
  .bird-a {
    top: 15px;
    width: 35px;
  }

  .bird-b {
    top: 35px;
    width: 30px;
  }
}

@media (max-width: 900px) {
  :root {
    --bird-gap: clamp(14px, 2.5vw, 30px);
  }
  .hero {
    padding: 12px 10px 16px 10px;
  }
  
  .hero-inner {
    padding: 0;
    margin-bottom: 0;
    gap: 0;
    overflow: visible;
  }
  
  .logo {
    width: fit-content;
    margin-bottom: 6px;
  }
  
  .logo img {
    width: min(280px, 88vw);
    height: auto;
    display: block;
  }
  
  .logo-subtitle {
    font-family: 'Bannikova', 'Мирослав', 'Yeseva One', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #8b4513;
    max-width: 88vw;
    text-align: left;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: 0.3px;
  }
  
  .hero-right {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
  }
  
  .search {
    width: 100%;
    max-width: 400px;
  }
  
  .search input {
    font-size: 14px;
  }
  
  .icon-nav {
    width: 100%;
    margin-top: 0;
    position: relative;
    clear: both;
  }
  
  .page-section {
    padding: 16px 14px;
    margin-bottom: 18px;
  }
  
  .para {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Птицы видимы, адаптивный размер */
  .bird {
    max-width: 32px;
  }
  
  .bird-a {
    top: clamp(6px, 2vw, 12px);
    width: 32px;
  }

  .bird-b {
    top: clamp(36px, 6vw, 60px);
    width: 28px;
  }
}

/* Планшеты и средние мобильные */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 0 14px;
  }
  
  .page-section {
    padding: 16px 16px;
    margin-bottom: 20px;
  }
  
  .para {
    font-size: 14px;
  }
  
  .cartoons-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --bird-gap: clamp(24px, 3vw, 50px);
  }
  body {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .page-wrapper {
    width: 100%;
    padding: 0 10px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero {
    padding: 10px 8px 16px 8px;
  }
  
  .hero-inner {
    margin-bottom: 0;
    gap: 0;
    overflow: visible;
  }
  
  .logo {
    width: fit-content;
    margin-bottom: 8px;
  }
  
  .logo img {
    width: min(260px, 85vw);
    height: auto;
    display: block;
  }
  
  .logo-subtitle {
    font-family: 'Bannikova', 'Мирослав', 'Yeseva One', Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    color: #8b4513;
    max-width: 85vw;
    text-align: left;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: 0.3px;
  }
  
  .hero-right {
    margin: 0;
    padding: 0;
    min-height: 0;
  }
  
  .icon-nav {
    width: 100%;
    margin-top: 0;
    clear: both;
  }
  
  .icon-nav ul {
    gap: 8px 12px;
    justify-content: center;
    padding: 0 5px;
  }
  
  .icon-circle {
    width: 38px;
    height: 38px;
  }
  
  .icon-img {
    max-width: 20px;
    max-height: 20px;
  }
  
  .icon-label {
    font-size: 10px;
    line-height: 1.2;
  }
  
  /* Адаптивность контента */
  #content {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  
  #content.single-column {
    max-width: 100%;
    padding: 0;
  }
  
  .page-section {
    width: 100%;
    padding: 14px 12px;
    margin-bottom: 14px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 6px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .section-title {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.3;
    word-wrap: break-word;
  }
  
  .para {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .para a {
    word-break: break-all;
  }
  
  .news-card {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
    box-sizing: border-box;
  }
  
  .cartoons-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }
  
  .cartoon-card {
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .cartoon-title {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .cartoon-meta {
    font-size: 11px;
  }
  
  .socials {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
  }
  
  .social-btn {
    width: 100%;
    min-width: auto;
    padding: 10px 14px;
    font-size: 13px;
    box-sizing: border-box;
  }
  
  .feedback-call-to-action {
    width: 100%;
    box-sizing: border-box;
  }
  
  #feedbackForm {
    width: 100%;
  }
}

/* Очень маленькие экраны (старые iPhone SE, малые Android) */
@media (max-width: 375px) {
  :root {
    --bird-gap: clamp(20px, 3vw, 40px);
  }
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .page-wrapper {
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero {
    padding: 8px 6px 14px 6px;
  }
  
  .hero-inner {
    margin-bottom: 0;
    gap: 0;
    overflow: visible;
  }
  
  .logo {
    width: fit-content;
    margin-bottom: 6px;
  }
  
  .logo img {
    width: min(220px, 82vw);
    height: auto;
    display: block;
  }
  
  .logo-subtitle {
    font-family: 'Bannikova', 'Мирослав', 'Yeseva One', Georgia, serif;
    font-size: 14px;
    font-weight: 400;
    color: #8b4513;
    line-height: 1.4;
    text-align: left;
    margin-bottom: 8px;
    max-width: 82vw;
    letter-spacing: 0.3px;
  }
  
  .hero-right {
    margin: 0;
    padding: 0;
    min-height: 0;
  }
  
  .icon-nav {
    width: 100%;
    margin-top: 0;
  }
  
  .icon-nav ul {
    gap: 6px 8px;
    padding: 0 2px;
  }
  
  .icon-circle {
    width: 34px;
    height: 34px;
  }
  
  .icon-img {
    max-width: 18px;
    max-height: 18px;
  }
  
  .icon-label {
    font-size: 9px;
    line-height: 1.2;
  }
  
  #content.single-column {
    padding: 0;
    max-width: 100%;
  }
  
  .page-section {
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 12px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 6px;
    box-sizing: border-box;
  }
  
  .section-title {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  
  .para {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 10px;
  }
  
  .cartoons-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .news-card {
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .social-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .socials {
    gap: 6px;
    margin-top: 14px;
  }
}

/* Compact side nav for mobile */
@media (max-width: 900px) {
  .side-nav {
    right: 12px;
    padding: 8px 5px;
    border-radius: 20px;
  }
  
  .side-nav ul {
    gap: 2px;
  }
  
  .side-nav a {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  
  .side-nav .side-label {
    display: none; /* Тултипы скрываем на мобильных */
  }
  
  .side-icon {
    width: 20px;
    height: 20px;
  }
  
  .side-dot {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 640px) {
  .side-nav {
    right: 10px;
    padding: 6px 4px;
    border-radius: 18px;
  }
  
  .side-nav ul {
    gap: 1px;
  }
  
  .side-nav a {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  
  .side-icon {
    width: 18px;
    height: 18px;
  }
  
  .side-dot {
    width: 8px;
    height: 8px;
  }
}

/* ============================================
   NEWS PAGES
   ============================================ */
.news-list {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.news-list-item {
  background: #fff;
  border: 1px solid var(--beta-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--beta-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.news-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.news-list-title {
  margin: 0;
  font-size: 20px;
  font-family: var(--beta-font-display);
  font-weight: 600;
}

.news-list-title a {
  color: var(--beta-brown);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-list-title a:hover {
  color: var(--beta-red);
}

.news-list-date {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-list-excerpt {
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5a5a5a;
}

.news-list-read-more {
  display: inline-block;
  color: var(--beta-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.news-list-read-more:hover {
  color: #a01818;
  text-decoration: underline;
}

.news-detail {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--beta-border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--beta-shadow);
}

.news-detail-header {
  border-bottom: 2px solid var(--beta-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.news-detail-title {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-family: var(--beta-font-display);
  color: var(--beta-brown);
  line-height: 1.3;
}

.news-detail-date {
  font-size: 14px;
  color: #999;
  font-style: italic;
}

.news-detail-body {
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 32px;
}

.news-detail-body p {
  margin-bottom: 16px;
}

.news-detail-footer {
  border-top: 1px solid var(--beta-border);
  padding-top: 20px;
}

.news-back-link {
  display: inline-block;
  color: var(--beta-brown);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.news-back-link:hover {
  color: var(--beta-red);
}

.pagination-wrapper {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 600px) {
  .news-detail {
    padding: 20px;
  }
  
  .news-detail-title {
    font-size: 22px;
  }
  
  .news-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
