/* Стили старой страницы «Музей» (версия до переделки 23.09). Правила были в css/style.css и удалены при его чистке,
   когда страница музея ещё была переделанной. Подключается только в Музей.html. */

.block-13 .owl-dots .owl-dot.active span {
  width: 20px;
  background: #ff8b00;
}

.categories li.active a, .sidelink li.active a {
  color: #000;
  font-style: italic;
}

.orange-tab-btn.active {
  color: #FF5722;
}

.orange-tab-btn.active i {
  color: #FF5722;
  transform: translateY(-3px);
}

.orange-content-section.active {
  display: block;
}

.nast-spoiler-fancy.active .nast-spoiler-fancy-icon {
  transform: rotate(90deg);
  background: #2980b9;
}

.nast-spoiler-fancy.active .nast-spoiler-fancy-arrow {
  transform: rotate(180deg);
  color: #3498db;
}

.nast-spoiler-fancy.active .nast-spoiler-fancy-content {
  padding: 25px;
  max-height: 5000px;
}

.nast-spoiler-fancy.active .nast-spoiler-fancy-content-inner {
  opacity: 1;
  transform: translateY(0);
}

.opor-spoiler_links.active::after {
  transform: rotate(180deg);
}

.design-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.design-gallery-item {
  position: relative;
  border-radius: var(--design-border-radius);
  overflow: hidden;
  box-shadow: var(--design-box-shadow);
  transition: var(--design-transition);
  aspect-ratio: 1 / 1;
}

.design-gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.design-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--design-transition);
}

.design-gallery-item:hover img {
  transform: scale(1.05);
}

.gia-folder.active .gia-folder-content {
  max-height: 2000px;
  padding: 20px;
}

.gia-folder.active .gia-folder-header::before {
  content: "📂";
}

.gia-spoiler.active .gia-spoiler-icon {
  transform: rotate(180deg);
}

.gia-spoiler.active .gia-spoiler-content {
  max-height: 5000px;
  padding: 20px;
}

.museum-gallery {
  position: relative;
  margin-bottom: 20px;
}

.museum-main-slide {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.museum-main-slide:hover {
  transform: translateY(-5px);
}

.museum-slide-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.museum-slide-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.museum-slide-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.museum-slide-text {
  font-size: 1rem;
  opacity: 0.9;
  color: #fff;
}

.museum-gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.museum-gallery:hover .museum-gallery-nav {
  opacity: 1;
  pointer-events: auto;
}

.museum-nav-arrow {
  background-color: rgba(255, 255, 255, 0.8);
  color: #2c3e50;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 15px;
  pointer-events: auto;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.museum-nav-arrow:hover {
  background-color: white;
  transform: scale(1.1);
}

.museum-thumbnails {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  overflow-x: auto;
  justify-content: center;
}

.museum-thumbnail {
  flex: 0 0 auto;
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
}

.museum-thumbnail:hover {
  opacity: 1;
  transform: scale(1.08);
  border-color: #3498db;
}

.museum-thumbnail.active {
  opacity: 1;
  transform: scale(1.1);
  border-color: #2ecc71;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.museum-thumbnail img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.museum-gallery {
  position: relative;
  margin-bottom: 20px;
}

.museum-main-slide {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.museum-main-slide:hover {
  transform: translateY(-5px);
}

.museum-slide-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.museum-slide-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.museum-slide-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.museum-slide-text {
  font-size: 1rem;
  opacity: 0.9;
}

.museum-gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.museum-gallery:hover .museum-gallery-nav {
  opacity: 1;
  pointer-events: auto;
}

.museum-nav-arrow {
  background-color: rgba(255, 255, 255, 0.8);
  color: #2c3e50;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 15px;
  pointer-events: auto;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.museum-nav-arrow:hover {
  background-color: white;
  transform: scale(1.1);
}

.museum-thumbnails {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  overflow-x: auto;
  justify-content: center;
}

.museum-thumbnail {
  flex: 0 0 auto;
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
}

.museum-thumbnail:hover {
  opacity: 1;
  transform: scale(1.08);
  border-color: #3498db;
}

.museum-thumbnail.active {
  opacity: 1;
  transform: scale(1.1);
  border-color: #2ecc71;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.museum-thumbnail img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.museum-two-images-gallery {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.museum-image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.museum-image-container:hover {
  transform: translateY(-5px);
}

.museum-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.museum-image-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 15px;
  transition: opacity 0.3s ease;
}

.museum-image-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.museum-image-text {
  font-size: 0.9rem;
  opacity: 0.9;
  color: #fff;
}

.museum-single-image-gallery {
  position: relative;
  margin-bottom: 20px;
}

.museum-single-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.museum-single-image-container:hover {
  transform: translateY(-5px);
}

.museum-single-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.museum-single-image-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.museum-single-image-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.museum-single-image-text {
  font-size: 1rem;
  opacity: 0.9;
}

.museum-certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.museum-certificate-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 3/4;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.museum-certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.museum-certificate-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.museum-certificate-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
.museum-certificates-grid {
  grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
.museum-main-slide {
  min-height: 350px;
}
}

@media (max-width: 768px) {
.museum-nav-arrow {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
}

@media (max-width: 768px) {
.museum-thumbnail {
  width: 80px;
  height: 60px;
}
}

@media (max-width: 768px) {
.museum-two-images-gallery {
  flex-direction: column;
}
}

@media (max-width: 768px) {
.museum-image-container {
  min-height: 250px;
}
}

@media (max-width: 768px) {
.museum-single-image-container {
  min-height: 350px;
}
}

@media (max-width: 768px) {
.museum-certificates-grid {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
}

@media (max-width: 480px) {
.museum-main-slide {
  min-height: 300px;
}
}

@media (max-width: 480px) {
.museum-slide-title {
  font-size: 1.1rem;
}
}

@media (max-width: 480px) {
.museum-slide-text {
  font-size: 0.9rem;
}
}

@media (max-width: 480px) {
.museum-nav-arrow {
  width: 35px;
  height: 35px;
  margin: 0 10px;
}
}

@media (max-width: 480px) {
.museum-thumbnail {
  width: 70px;
  height: 50px;
}
}

@media (max-width: 480px) {
.museum-image-container {
  min-height: 200px;
}
}

@media (max-width: 480px) {
.museum-single-image-container {
  min-height: 300px;
}
}

.museum-image-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.museum-image-container:hover {
  transform: translateY(-5px);
}

.museum-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.museum-image-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 15px;
  transition: opacity 0.3s ease;
}

.museum-image-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.museum-image-text {
  font-size: 0.9rem;
  opacity: 0.9;
  color: #fff;
}

.museum-single-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.museum-single-image-container:hover {
  transform: translateY(-5px);
}

.museum-single-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.museum-single-image-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.museum-single-image-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.museum-single-image-text {
  font-size: 1rem;
  opacity: 0.9;
  color: #fff;
}

.museum-certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.museum-certificate-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 3/4;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.museum-certificate-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.museum-certificate-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.museum-certificate-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
.museum-certificates-grid {
  grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
.museum-main-slide {
  min-height: 350px;
}
}

@media (max-width: 768px) {
.museum-nav-arrow {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
}

@media (max-width: 768px) {
.museum-thumbnail {
  width: 80px;
  height: 60px;
}
}

@media (max-width: 768px) {
.museum-image-container {
  min-height: 250px;
}
}

@media (max-width: 768px) {
.museum-single-image-container {
  min-height: 350px;
}
}

@media (max-width: 768px) {
.museum-certificates-grid {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
}

@media (max-width: 480px) {
.museum-main-slide {
  min-height: 300px;
}
}

@media (max-width: 480px) {
.museum-slide-title {
  font-size: 1.1rem;
}
}

@media (max-width: 480px) {
.museum-slide-text {
  font-size: 0.9rem;
}
}

@media (max-width: 480px) {
.museum-nav-arrow {
  width: 35px;
  height: 35px;
  margin: 0 10px;
}
}

@media (max-width: 480px) {
.museum-thumbnail {
  width: 70px;
  height: 50px;
}
}

@media (max-width: 480px) {
.museum-image-container {
  min-height: 200px;
}
}

@media (max-width: 480px) {
.museum-single-image-container {
  min-height: 300px;
}
}

.newmuseum-thumbnail.active {
  opacity: 1;
  transform: scale(1.1);
  border-color: #2ecc71;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newmuseum-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow: hidden;
  animation: newmuseum-fadeIn 0.3s;
}

.newmuseum-modal-content {
  display: block;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.newmuseum-modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #f1f1f1;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.newmuseum-modal-close:hover {
  color: #ff6b6b;
}

.newmuseum-modal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.newmuseum-modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 1001;
}

.newmuseum-modal-arrow {
  background-color: rgba(255, 255, 255, 0.8);
  color: #2c3e50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 25px;
  transition: all 0.3s ease;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.newmuseum-modal-arrow:hover {
  background-color: white;
  transform: scale(1.1);
}

.newmuseum-modal-counter {
  position: absolute;
  top: 25px;
  left: 35px;
  color: #f1f1f1;
  font-size: 18px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 15px;
  border-radius: 20px;
}

@media (max-width: 768px) {
.newmuseum-modal-arrow {
  width: 50px;
  height: 50px;
  font-size: 22px;
  margin: 0 15px;
}
}

@media (max-width: 480px) {
.newmuseum-modal-arrow {
  width: 40px;
  height: 40px;
  font-size: 18px;
  margin: 0 10px;
}
}

@media (max-width: 480px) {
.newmuseum-modal-close {
  font-size: 35px;
  top: 15px;
  right: 20px;
}
}

@media (max-width: 480px) {
.newmuseum-modal-counter {
  top: 15px;
  left: 20px;
  font-size: 14px;
}
}

.setka-gallery .museum-image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
  aspect-ratio: 1;
}

.setka-gallery .museum-image-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.setka-gallery .museum-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.setka-gallery .museum-image-container:hover img {
  transform: scale(1.05);
}

.setka-gallery .museum-image-description {
  display: none;
}

.sanprosvet-modal-overlay.active {
  display: flex;
}
