/* ===== МОБИЛЬНОЕ ПРИЛОЖЕНИЕ — ГАРАНТИРОВАННОЕ ПРИМЕНЕНИЕ ===== */

/* Полный сброс десктопного body */
body {
  margin: 0 !important;
  padding: 0 !important;
  background: #0F0D10 !important;
  font-family: 'EB Garamond', serif !important;
  color: #B8B0A3 !important;
  line-height: 1.6 !important;
  font-size: 18px !important;
}

/* Боковая панель — спрятана за экраном */
.sidebar {
  position: fixed !important;
  top: 0 !important;
  left: -280px !important;
  width: 260px !important;
  height: 100% !important;
  background: #0F0D10 !important;
  transition: left 0.3s ease !important;
  z-index: 1000 !important;
  padding-top: 60px !important;
  box-shadow: 2px 0 10px rgba(0,0,0,0.5) !important;
}
.sidebar.open {
  left: 0 !important;
}

/* Основной контент */
.content {
  margin-left: 0 !important;
  padding: 20px 15px !important;
  background: none !important;           /* убираем десктопные фоны */
}

/* Кнопка гамбургера */
.menu-toggle {
  display: block !important;
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 1100 !important;
  background: none !important;
  border: none !important;
  font-size: 28px !important;
  color: #A67C52 !important;
  cursor: pointer !important;
}
.menu-toggle::before {
  content: "☰";
}

/* Карточка стиха — твой фон pages.jpg */
.stih {
  background: 
    linear-gradient(rgba(15, 13, 16, 0.8), rgba(15, 13, 16, 0.8)),
    url('/pages.jpg') center/cover no-repeat !important;
  border: 1px solid #4A2E2B !important;
  border-radius: 4px !important;
  padding: 25px 20px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.7) !important;
  min-height: 80vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  border-left: 1px solid #4A2E2B !important; /* убираем старую черту */
}

/* Заголовок стиха */
.stih h2 {
  font-family: 'Cormorant Infant', serif !important;
  font-size: 2rem !important;
  text-align: center !important;
  color: #C2A87D !important;
  margin: 0 0 1.2em 0 !important;
  letter-spacing: 0.05em !important;
}
.stih h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, #D4AF37, transparent);
  margin: 0.8em auto 0 auto;
}

/* Буквица */
.stih h2 + p::first-letter {
  font-family: 'Cinema Decorative', serif !important;
  font-size: 5rem !important;
  float: left !important;
  line-height: 0.7 !important;
  margin-right: 0.15em !important;
  color: #D4AF37 !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6) !important;
  text-transform: uppercase !important;
}
.stih h2 + p {
  clear: left !important;
}

.stih p {
  font-size: 1.2rem !important;
  line-height: 1.8 !important;
  margin: 0 0 0.8em 0 !important;
}

/* Навигация (если будет) */
.poem-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.poem-nav button {
  background: none;
  border: 1px solid #4A2E2B;
  color: #A67C52;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
}
.poem-nav button:hover {
  background: #2A1E20;
  color: #D4AF37;
}

/* Скрываем лишние десктопные элементы */
.citation, .early-works-divider {
  display: none !important;
}