/* Основные стили для книги "Мёд и пчёлы" */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Literata:wght@400;500;600&family=Inter:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Literata', serif;
  font-size: 12pt;
  line-height: 1.5;
  color: #3A2F2A;
  background-color: #F7F2E8;
}

.page {
  max-width: 65ch;
  margin: 0 auto;
  padding: 18mm 25mm 25mm 20mm;
  background: #F7F2E8;
  min-height: 100vh;
}

.title-page.page {
  max-width: 100%;
  padding: 2em;
}

/* Типографика заголовков */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  font-weight: 700;
  color: #3A2F2A;
  margin: 1.5em 0 0.8em 0;
  line-height: 1.2;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8em;
  font-weight: 700;
  color: #3A2F2A;
  margin: 1.3em 0 0.6em 0;
  line-height: 1.3;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4em;
  font-weight: 600;
  color: #3A2F2A;
  margin: 1.2em 0 0.5em 0;
  line-height: 1.4;
}

h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2em;
  font-weight: 600;
  color: #3A2F2A;
  margin: 1em 0 0.4em 0;
}

/* Абзацы */
p {
  margin: 0.8em 0;
  text-align: justify;
  text-indent: 0;
}

/* Списки */
ul, ol {
  margin: 1em 0;
  padding-left: 2em;
}

li {
  margin: 0.4em 0;
  line-height: 1.6;
}

/* Цитаты */
blockquote {
  font-style: italic;
  border-left: 3px solid #D7B56D;
  padding-left: 16px;
  margin: 20px 0;
  color: #5A4A45;
  font-size: 1.05em;
}

/* Выделения */
strong {
  font-weight: 600;
  color: #3A2F2A;
}

em {
  font-style: italic;
}

/* Горизонтальные линии */
hr {
  border: none;
  border-top: 1px solid #D7B56D;
  margin: 2em 0;
}

/* Класс для выделенных мыслей */
.idea {
  font-size: 1.3em;
  text-align: center;
  margin: 2em 0;
  padding: 1.5em;
  font-weight: 500;
  color: #3A2F2A;
  font-style: italic;
}

/* Класс для практик */
.practice {
  background-color: #FFF6D9;
  border: 2px solid #D7B56D;
  border-radius: 8px;
  padding: 1.5em;
  margin: 1.5em 0;
}

.practice h3 {
  margin-top: 0;
  color: #3A2F2A;
}

/* Иконка главы */
.chapter-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 2em;
  display: block;
  opacity: 0.6;
}

/* Титульная страница */
.cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.3s;
}

.cover-link:hover {
  opacity: 0.95;
}

.title-page {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
  max-width: 100%;
  position: relative;
  background: #F7F2E8;
  gap: 0;
}

.title-page .cover-illustration {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0E8D8;
  min-height: 100vh;
  padding: 4em 3em;
  border-right: 1px solid rgba(58, 47, 42, 0.1);
}

.title-page .beehive-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}

.title-page .cover-content {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4em 4em 4em 3em;
  min-height: 100vh;
  text-align: left;
}

.title-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 5em;
  font-weight: 700;
  color: #3A2F2A;
  margin: 0 0 0.8em 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.title-page .subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.4em;
  color: #5A4A45;
  margin: 0 0 2.5em 0;
  font-weight: 400;
  line-height: 1.6;
}

.title-page .slogan {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  color: #3A2F2A;
  margin: 0;
  font-style: italic;
  line-height: 1.5;
  font-weight: 500;
}

.title-page .navigation-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  color: #8A7A6A;
  margin-top: 3em;
  font-weight: 400;
  opacity: 0.7;
}

.title-page .author {
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  color: #5A4A45;
  margin-top: 3em;
}

.title-page svg {
  width: 200px;
  height: 200px;
  margin: 2em 0;
  opacity: 0.7;
}

.title-page .cover-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 0 2em 0;
  box-shadow: 0 10px 30px rgba(58, 47, 42, 0.2);
  border-radius: 8px;
}

@media (max-width: 968px) {
  .title-page {
    flex-direction: column;
  }
  
  .title-page .cover-illustration {
    flex: 0 0 auto;
    min-height: auto;
    padding: 3em 2em;
    border-right: none;
    border-bottom: 1px solid rgba(58, 47, 42, 0.1);
  }
  
  .title-page .cover-content {
    flex: 0 0 auto;
    min-height: auto;
    padding: 3em 2em;
    align-items: center;
    text-align: center;
  }
  
  .title-page h1 {
    font-size: 3.5em;
    text-align: center;
  }
  
  .title-page .subtitle {
    text-align: center;
    font-size: 1.2em;
  }
  
  .title-page .slogan {
    text-align: center;
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .title-page .cover-illustration {
    padding: 2em 1em;
  }
  
  .title-page .cover-content {
    padding: 2em 1.5em;
  }
  
  .title-page h1 {
    font-size: 2.5em;
  }
  
  .title-page .beehive-image {
    max-width: 250px;
  }
  
  .title-page .subtitle {
    font-size: 1.1em;
  }
  
  .title-page .slogan {
    font-size: 1.1em;
  }
}

/* Оглавление */
.contents-page {
  padding: 3em;
}

.contents-page h1 {
  text-align: center;
  margin-bottom: 2em;
}

.contents-page .part {
  margin: 2em 0;
}

.contents-page .part-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3em;
  font-weight: 600;
  color: #3A2F2A;
  margin: 1.5em 0 0.8em 0;
}

.contents-page ul {
  list-style: none;
  padding-left: 0;
}

.contents-page li {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.contents-page a {
  color: #3A2F2A;
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.3s;
}

.contents-page a:hover {
  color: #D7B56D;
  text-decoration: underline;
}

/* Навигация */
.navigation {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid #D7B56D;
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
}

.navigation a {
  color: #3A2F2A;
  text-decoration: none;
}

.navigation a:hover {
  color: #D7B56D;
}

/* Код (если есть) */
code {
  font-family: 'Inter', monospace;
  background-color: #FFF6D9;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background-color: #FFF6D9;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1em 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Печать */
@media print {
  .page {
    padding: 18mm 25mm 25mm 20mm;
    page-break-after: always;
  }
  
  .page:last-child {
    page-break-after: auto;
  }
  
  .navigation {
    display: none;
  }
}


