@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.2s;
}

a:hover {
  color: #e74c3c;
}

.container {
  max-width: 1200px;
  margin: 25px auto 0;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header {
  text-align: left;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #1a5276;
}

p {
  margin-bottom: 1rem;
}

h1 {
  color: #1a5276;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  text-align: right;
  line-height: 1;
}

h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: bold;
}

h3 {
  font-weight: bold;
}

.counter {
  background-color: #1a5276;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 10px;
  display: inline-block;
}

.books-list {
  list-style: none;
  counter-reset: book-counter;
}

.book-row {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px dashed #ddd;
  position: relative;
}

.book-row:last-child {
  border-bottom: none;
}

.book-wrapper {
  display: flex;
  flex-direction: column;
}

.lib-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #2c3e50;
  line-height: 1.5;
  font-weight: bold;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid #3498db;
}

.book-card {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.book-imgs {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-cover {
  width: 180px;
  height: 250px;
  object-fit: cover;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border-radius: 4px;
  margin-bottom: 8px;
}

.inline-image-hor {
  width: 350px;
  height: auto;
}

.inline-image-aside-hor {
  width: 200px;
  height: auto;
}

.inline-image-vert {
  height: 350px;
  width: auto;
}

.inline-image-aside-vert {
  height: 200px;
  width: auto;
}

.float-left {
  float: left;
  margin-right: 16px;
}

.float-right {
  float: right;
  margin-left: 16px;
}

.img-label-hor {
  width: 350px;
  height: auto;
  font-style: italic;
  text-align: right;
}

.img-label-vert {
  width: 100%;
  font-style: italic;
  text-align: right;
}

.img-label-book {
  width: 180px;
  font-style: italic;
  text-align: right;
  font-size: 0.9rem;
}

.film-cover {
  max-width: 250px;
  max-height: 250px;
  object-fit: cover;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.book-cover:hover,
.film-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.book-annotation {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #3498db;
  border-radius: 0 5px 5px 0;
  margin-bottom: 1rem;
}

.contents-block-a {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #3498db;
  border-radius: 0 5px 5px 0;
  margin-bottom: 1rem;
}

.book-annotation-2 {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #f53628;
  border-radius: 0 5px 5px 0;
  margin-bottom: 1rem;
}

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

.nav-contents-page h2,
.nav-contents-page h3 {
  margin: 4px 0 4px;
  color: #2c3e50;
  line-height: 1.2;
}

.nav-contents-page h2.with-border {
  font-size: 1.4rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.nav-contents-page h2.no-border {
  font-size: 1.4rem;
}

.nav-contents-page h3 {
  font-size: 1.1rem;
  margin-left: 10px;
}

.nav-contents-page a {
  text-decoration: none;
  color: #3498db;
  display: block;
  padding: 5px 0;
  transition: color 0.2s;
  line-height: 1.2;
}

.nav-contents-page a:hover {
  color: #e74c3c;
}

.nav-contents-page li {
  margin-left: 25px;
}

.contents-block-b {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #f53628;
  border-radius: 0 5px 5px 0;
  margin-bottom: 1rem;
}

.contents-block-c {
  flex: 1;
  padding: 1rem;
  border-left: 3px solid #ccc;
  background-color: #f9f9f9;
}

footer {
  margin-top: 40px;
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  .book-card {
    flex-direction: column;
  }
  .book-cover {
    align-self: center;
    width: 150px;
    height: 210px;
  }
  .lib-description {
    font-size: 1rem;
  }
  .book-row::before {
    left: -30px;
  }
}
@media (max-width: 576px) {
  .container {
    padding: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  .book-row::before {
    position: static;
    margin-bottom: 10px;
  }
}
.decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 50%;
  z-index: -1;
}

.decoration-1 {
  top: 50px;
  right: -50px;
}

.decoration-2 {
  bottom: 100px;
  left: -50px;
  width: 150px;
  height: 150px;
}

.nav-contents-page h3 {
  text-indent: 1rem;
}
.nav-contents-page ul {
  flex-direction: column;
  display: flex;
}
.nav-contents-page ul li {
  text-indent: 2rem;
  list-style: none;
}

.with-aside {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}
.with-aside .article {
  flex-basis: 66%;
}
.with-aside .aside {
  flex-basis: 33%;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .with-aside .article {
    flex-basis: 100%;
  }
  .with-aside .aside {
    flex-basis: 100%;
  }
}

.aside {
  font-style: italic;
  padding: 1rem;
  border-left: 3px solid #ccc;
  background-color: #f9f9f9;
}

/* Lightbox from AI */
/* Добавьте это в ваш CSS файл или в тег style */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#lightbox img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
}

/* Стили для кнопки меню */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Стили для иконки гамбургера */
.hamburger {
  width: 20px;
  height: 16px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}

/* Стили для выпадающего меню */
.dropdown-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  height: 100vh;
  background-color: #f8f9fa;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 1000;
  padding: 60px 20px 20px;
}

.dropdown-menu.active {
  right: 0;
}

/* Затемнение фона */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Стили для навигации */
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav h2,
.nav h3 {
  margin: 4px 0 4px;
  color: #2c3e50;
  line-height: 1.2;
}

.nav h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.nav h3 {
  font-size: 1.1rem;
  margin-left: 10px;
}

.nav a {
  text-decoration: none;
  color: #3498db;
  display: block;
  padding: 5px 0;
  transition: color 0.2s;
}

.nav a:hover {
  color: #e74c3c;
}

.nav li {
  margin-left: 25px;
  margin-bottom: 5px;
}

/* Анимация открытия/закрытия меню */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.nav ul {
  animation: fadeIn 0.3s ease;
}

/* Стили для кнопки "Наверх" */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #e74c3c;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Стили для кнопки "Назад" */
.back-button {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.back-button.show {
  opacity: 1;
  visibility: visible;
}

.back-button:hover {
  background-color: #e74c3c;
}

.back-button svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.page-header {
  display: flex;
  align-items: center;
  height: 200px;
  background-color: white;
  flex-wrap: wrap;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-basis: 50%;
  max-height: 200px;
}

.logo-img {
  width: 100%;
  height: auto;
}

.title-wrapper {
  flex-basis: 50%;
  display: flex;
}

.title-inner {
  text-align: right;
  border-left: 5px solid #3598db;
  padding-left: 2rem;
}

.main-title {
  font-family: "Comfortaa", sans-serif;
  font-size: 48px;
  line-height: 1.2;
  text-align-last: right;
  color: #3598db;
}

.main-subtitle {
  font-family: "Comfortaa", sans-serif;
  font-size: 24px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 30px;
  }
  .main-subtitle {
    font-size: 18px;
  }
}/*# sourceMappingURL=style2.css.map */