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

body {
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background: #f2f7fb;
  color: #333;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
}

.site-title {
  font-size: 14px;
  line-height: 1.3;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #0077ff;
}

/* Скрываем иконку меню по умолчанию (на десктопе) */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Показываем иконку только на мобильных устройствах */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 10px;
    height: auto;
  }

  .logo {
    margin-bottom: 10px;
  }

  .site-title {
    display: none;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    padding: 10px 0;
    position: absolute;
    top: 70px;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    width: 100%;
    text-align: center;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    transform: none;
    opacity: 1;
    display: none;
  }

  .dropdown-content.show {
    display: block;
  }

  .dropdown > a {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 425px) {
  .header {
    padding: 10px;
  }

  .logo img {
    height: 40px;
  }

  .menu-toggle {
    right: 10px;
  }

  .nav a {
    padding: 10px;
    font-size: 14px;
  }
}

/* Остальной CSS остается без изменений */
.intro {
  background: linear-gradient(135deg, #dfeeff, #f3f5ff);
  padding: 40px 20px;
  text-align: center;
  padding-top: 110px;
}

.intro h1 {
  font-size: 22px;
  margin-bottom: 20px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-number {
  font-size: 24px;
  color: rgb(26, 61, 222);
  font-weight: bold;
}

.search-section {
  background: white;
  padding: 30px 20px;
  margin-top: 110px;
}

.search-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-tabs a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.search-tabs a.active {
  border-color: rgb(26, 61, 222);
  color: #000;
}

.search-box {
  max-width: 900px;
  margin: auto;
  background: #f8f9fb;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.search-row select,
.search-row input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.search-row select {
  width: 250px;
}

.search-button {
  padding: 10px 20px;
  background: rgb(26, 61, 222);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-row input {
  width: 400px;
}

.search-actions {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.search-actions a {
  color: rgb(26, 61, 222);
  text-decoration: none;
}

@media (max-width: 768px) {
  .search-row {
    flex-direction: column;
  }

  .nav {
    justify-content: center;
  }

  .stats {
    flex-direction: column;
  }

  .search-row input {
    width: 100%;
  }
}

.last {
  text-align: center;
  padding-top: 30px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: color 0.3s ease;
  cursor: pointer;
}

.dropdown > a:hover {
  color: #0077ff;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-content a {
  padding: 12px 20px;
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #f0f4ff;
  color: #0077ff;
}

.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.book-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin-top: 50px;
}

.book-item {
  text-align: center;
  width: 200px;
}

.book-img {
  max-width: 150px;
  height: auto;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .book-item {
    width: 150px;
  }

  .book-img {
    max-width: 120px;
  }

  .search-row input {
    width: 200px;
    margin-bottom: 40px;
  }
}

@media (max-width: 425px) {
  .header {
    padding: 10px;
  }

  .logo img {
    height: 40px;
  }

  .menu-toggle {
    margin-left: 0;
    right: 10px;
  }

  .search-row input {
    width: 100%;
  }
}

/* footer */
.footer {
  background: linear-gradient(135deg, #dfeeff, #f3f5ff);
  color: #000000;
  padding: 40px 20px 20px;
  font-family: sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-column h3 {
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: uppercase;
}

.footer-column p,
.footer-column a,
.footer-column li {
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  margin-bottom: 5px;
  display: block;
}

.footer-column a:hover {
  color: #000000;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.logo {
  max-width: 100px;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  border-top: 1px solid #333;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-column {
    width: 100%;
  }
}

.swiper-container {
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.swiper-slide {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: auto;
}

.book-img {
  max-width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.book-title,
.book-author {
  margin: 5px 0;
  color: #007bff;
}

.book-title {
  font-size: 16px;
  font-weight: bold;
}

.book-author {
  font-size: 14px;
}

.swiper-button-prev,
.swiper-button-next {
  color: #007bff;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .swiper-slide {
    padding: 10px;
  }

  .book-img {
    max-width: 120px;
  }
}
