/* ===== ОБЩИЕ НАСТРОЙКИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ШАПКА ===== */
.header {
  background: #1a3a2a;
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border-bottom: 3px solid #f0c040;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  margin-right: 8px;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s;
}

.header-actions {
  display: flex;
  align-items: center;
}

.cart-icon {
  font-size: 1.6rem;
  background-color: #f0c040;
  color: #1a1a2e;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
}

.cart-link {
  text-decoration: none;
  color: inherit;
}

/* ===== АДАПТИВ ШАПКИ (ТЕЛЕФОН) ===== */
@media (max-width: 768px) {
  .header__inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo {
    font-size: 1.4rem;
  }
  .logo img {
    height: 36px;
  }

  .main-nav {
    gap: 16px;
    justify-content: center;
  }
  .main-nav a {
    font-size: 0.95rem;
  }

  .social-icons {
    gap: 10px;
  }
  .social-icons img {
    width: 26px;
    height: 26px;
  }

  .cart-icon {
    font-size: 1.4rem;
    padding: 4px 12px;
  }
}

/* ===== НАВИГАЦИЯ ===== */
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 4px 0;
}

/* ===== СОЦИАЛЬНЫЕ ИКОНКИ ===== */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s;
}

/* ===== КОРЗИНА В ШАПКЕ ===== */
.cart-icon {
  font-size: 1.6rem;
  background-color: #f0c040;
  color: #1a1a2e;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
}

.cart-link {
  text-decoration: none;
  color: inherit;
}

/* ===== ПОИСК И ФИЛЬТРЫ ===== */
.search-section {
  margin: 30px 0 20px;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  border: 2px solid #333;
  border-radius: 40px;
  outline: none;
  background-color: #1e1e1e;
  color: #e0e0e0;
  transition: border 0.2s;
  margin-bottom: 15px;
}

.search-input:focus {
  border-color: #f0c040;
}

.search-input::placeholder {
  color: #777;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: #2a2a2a;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #ccc;
  transition: background 0.2s, color 0.2s;
}

.filter-btn.active {
  background: #f0c040;
  color: #1a1a2e;
}

/* ===== СОРТИРОВКА ===== */
.sort-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.sort-section select {
  background: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #444;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
  cursor: pointer;
}

.sort-section select:focus {
  outline: none;
  border-color: #f0c040;
}

/* ===== КАТАЛОГ (сетка) ===== */
.catalog {
  display: grid;
  gap: 20px;
  margin: 20px 0 40px;
  grid-template-columns: repeat(2, 1fr); /* база: 2 колонки */
}

/* Планшеты (≥768px) – 3 колонки */
@media (min-width: 768px) {
  .catalog {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

/* ПК (≥1200px) – 4 колонки */
@media (min-width: 1200px) {
  .catalog {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

/* Очень широкие экраны – 4 колонки с большим отступом */
@media (min-width: 1600px) {
  .catalog {
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
  }
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card {
  background: #1e1e1e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #111;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.product-info {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: #f0f0f0;
}

.product-price {
  font-size: 1.4rem;
  color: #f0c040;
  font-weight: bold;
  margin: 8px 0;
}

.product-price-placeholder {
  font-size: 1.2rem;
  color: #ff6b6b;
  font-weight: bold;
  margin: 8px 0;
  display: none;
}

.product-card.out-of-stock .product-price {
  display: none;
}

.product-card.out-of-stock .product-price-placeholder {
  display: block;
}

.product-card.out-of-stock .product-image img {
  filter: grayscale(1);
  opacity: 0.6;
}

.product-description {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  flex: 1;
}

.product-stock {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.product-controls {
  margin-top: 4px;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border: none;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
  width: 100%;
}

.btn-primary {
  background: #f0c040;
  color: #1a1a2e;
}

.btn-primary:disabled {
  background: #444;
  color: #666;
  cursor: not-allowed;
  transform: none;
}

/* ===== КОНТРОЛЫ КОЛИЧЕСТВА ===== */
.product-quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a2a2a;
  border-radius: 40px;
  padding: 2px;
  gap: 4px;
}

.product-quantity-control button {
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-quantity-control button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-quantity-control .qty-num {
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 30px;
  text-align: center;
  color: #f0f0f0;
}

/* ===== ПОДВАЛ ===== */
.footer {
  background: #1a3a2a;
  color: #888;
  text-align: center;
  padding: 30px 0;
  margin-top: 30px;
  flex-shrink: 0;
  border-top: 3px solid #f0c040;
}

/* ===== СТРАНИЦА КОРЗИНЫ ===== */
.cart-page {
  padding: 20px 0;
}

.cart-page h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border-radius: 16px;
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  gap: 20px;
  flex-wrap: wrap;
}

.cart-item__info {
  flex: 1;
  min-width: 150px;
}

.cart-item__title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #f0f0f0;
}

.cart-item__price {
  color: #f0c040;
  font-weight: bold;
}

.cart-item__stock {
  font-size: 0.8rem;
  color: #888;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item__controls button {
  background: #2a2a2a;
  border: none;
  border-radius: 30px;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e0e0e0;
}

.cart-item__controls button:disabled {
  background: #333;
  color: #555;
  cursor: not-allowed;
}

.cart-item__controls .quantity {
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 30px;
  text-align: center;
  color: #f0f0f0;
}

.cart-item__remove {
  background: #442222 !important;
  color: #ff6b6b !important;
}

.cart-total {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: right;
  padding: 15px 0;
  border-top: 2px solid #333;
  color: #f0f0f0;
}

.cart-total small {
  font-weight: normal;
  font-size: 0.9rem;
  color: #888;
}

.checkout-btn {
  background: #f0c040;
  color: #1a1a2e;
  border: none;
  padding: 16px 40px;
  border-radius: 60px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.checkout-btn:disabled {
  background: #444;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #1e1e1e;
  border-radius: 30px;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #e0e0e0;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.modal p {
  color: #aaa;
  margin-bottom: 25px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-actions .btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}

/* Кнопки в модалке выбора способа */
#checkout-modal .btn-telegram {
  background: #0088cc;
  color: #fff;
}

#checkout-modal .btn-avito {
  background: #ff6f00;
  color: #fff;
}

#checkout-modal .btn-cancel {
  background: #333;
  color: #ccc;
}

/* Модалка инструкции */
#instruction-modal .modal {
  max-width: 600px;
}

#instruction-modal .btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#instruction-modal .btn-telegram {
  background: #0088cc;
  color: #fff;
}

#instruction-modal .btn-avito {
  background: #ff6f00;
  color: #fff;
}

#instruction-modal .btn-cancel {
  background: #333;
  color: #ccc;
}

/* Блок информации о заказе */
#instruction-order-info {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  text-align: left;
  color: #e0e0e0;
}

#instruction-order-info h4 {
  margin-top: 0;
  color: #f0c040;
}

#instruction-order-info div {
  border-bottom-color: #444 !important;
}

/* ===== СТРАНИЦА ТОВАРА ===== */
.product-page {
  padding: 30px 0;
}

.product-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.product-gallery {
  flex: 1;
  min-width: 0;
}

.product-main-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.product-gallery-thumbs .thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s;
}

.product-details {
  flex: 1;
  min-width: 280px;
}

.product-details .product-title {
  font-size: 2rem;
  margin-bottom: 6px;
  color: #f0f0f0;
}

.product-details .product-sku {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.product-price-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 15px 0;
}

.product-price-block .product-price {
  font-size: 2rem;
  font-weight: bold;
  color: #f0c040;
}

.product-price-block .product-stock {
  font-size: 1rem;
  color: #888;
  order: 3;
}

.product-price-block .product-stock.in-stock {
  color: #7bed9f;
}

.product-price-block .product-stock.out-of-stock {
  color: #ff6b6b;
}

.product-condition {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 15px;
}

.product-description-full {
  margin: 20px 0;
  padding: 15px;
  background: #1e1e1e;
  border-radius: 12px;
}

.product-description-full h3 {
  color: #f0c040;
  margin-bottom: 8px;
}

.product-description-full p {
  color: #ddd;
  line-height: 1.7;
}

.product-actions {
  margin-top: 20px;
}

.product-actions .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}

.product-contact {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #aaa;
}

.product-contact .contact-link {
  color: #f0c040;
  text-decoration: none;
  font-weight: bold;
}

/* ===== АДАПТИВНОСТЬ (ТОЛЬКО ТЕЛЕФОН) ===== */
@media (max-width: 768px) {
  .header__inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .logo {
    font-size: 1.4rem;
    justify-content: center;
  }

  .logo img {
    height: 36px;
  }

  .main-nav {
    gap: 16px;
    justify-content: center;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  .social-icons {
    gap: 10px;
    justify-content: center;
  }

  .social-icons img {
    width: 26px;
    height: 26px;
  }

  .header-actions {
    text-align: center;
  }

  .cart-icon {
    font-size: 1.4rem;
    padding: 4px 12px;
  }

  .catalog {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на телефонах */
    gap: 20px;
  }

  .product-image {
    height: 200px;
  }

  .product-layout {
    flex-direction: column;
  }

  .product-details {
    min-width: 0;
    width: 100%;
  }

  .product-gallery-thumbs .thumb {
    width: 60px;
    height: 60px;
  }

  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cart-item__controls {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .filters {
    justify-content: center;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .modal {
    padding: 20px;
  }

  .product-details .product-title {
    font-size: 1.5rem;
  }

  .product-price-block .product-price {
    font-size: 2rem;
    font-weight: bold;
    color: #f0c040;
  }

  .catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-image {
    height: 160px;
  }
}

/* ===== ХОВЕРЫ (ТОЛЬКО НА УСТРОЙСТВАХ С МЫШКОЙ) ===== */
@media (hover: hover) {
  .logo:hover {
    color: #f0c040;
  }

  .main-nav a:hover {
    color: #f0c040;
  }

  .social-icons a:hover img {
    transform: scale(1.1);
  }

  .filter-btn:hover {
    background: #3a3a3a;
    color: #fff;
  }

  .filter-btn.active:hover {
    background: #dbb030;
  }

  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  }

  .btn-primary:hover {
    background: #dbb030;
    transform: scale(0.97);
  }

  .product-quantity-control button:hover {
    background: #3a3a3a;
  }

  .cart-item__controls button:hover {
    background: #3a3a3a;
  }

  .cart-item__remove:hover {
    background: #553333 !important;
  }

  .checkout-btn:hover {
    background: #dbb030;
  }

  .checkout-btn:disabled:hover {
    background: #444;
    transform: none;
  }

  #checkout-modal .btn-telegram:hover {
    background: #0077bb;
  }

  #checkout-modal .btn-avito:hover {
    background: #e65f00;
  }

  #checkout-modal .btn-cancel:hover {
    background: #444;
  }

  #instruction-modal .btn-telegram:hover {
    background: #0077bb;
  }

  #instruction-modal .btn-avito:hover {
    background: #e65f00;
  }

  #instruction-modal .btn-cancel:hover {
    background: #444;
  }

  .product-gallery-thumbs .thumb:hover {
    border-color: #f0c040;
  }

  .product-contact .contact-link:hover {
    text-decoration: underline;
  }
}

.cart-item__title a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.2s;
}
.cart-item__title a:hover {
  color: #f0c040;
  text-decoration: underline;
}

/* ===== ПАГИНАЦИЯ ===== */
.page-btn {
  background: #2a2a2a;
  color: #ccc;
  border: 1px solid #444;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
}
.page-btn:hover:not(:disabled) {
  background: #3a3a3a;
  color: #fff;
}
.page-btn.active {
  background: #f0c040;
  color: #1a1a2e;
  border-color: #f0c040;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== СКИДКИ ===== */
.old-price {
  font-size: 0.9rem;
  color: #ff6b6b;
  text-decoration: line-through;
  margin-right: 10px;
}
.product-price.new-price {
  color: #f0c040;
  font-size: 1.4rem;
  font-weight: bold;
}

/* ===== РЕКОМЕНДАЦИИ ===== */
.recommendations .catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 10px 0;
}
@media (max-width: 480px) {
  .recommendations .catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.product-price-block .old-price {
  font-size: 1.2rem;
  color: #ff6b6b;
  text-decoration: line-through;
  order: 2;
}

/* ===== СКИДКИ НА ГЛАВНОЙ (порядок) ===== */
.product-price-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 8px 0;
}
.product-price-wrapper .product-price {
  font-size: 1.4rem;
  color: #f0c040;
  font-weight: bold;
  margin: 0;
}
.product-price-wrapper .old-price {
  font-size: 0.9rem;
  color: #ff6b6b;
  text-decoration: line-through;
  order: 2;
}
.product-price-wrapper .discount-badge {
  background: #ff6b6b;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
}

/* ===== СТРАНИЦА ТОВАРА: размер цены ===== */
.product-price-block .product-price.new-price {
  font-size: 2rem;
  font-weight: bold;
  color: #f0c040;
}
.product-price-block .old-price {
  font-size: 1.2rem;
  color: #ff6b6b;
  text-decoration: line-through;
  order: 2;
}
.product-price-block .discount-badge {
  background: #ff6b6b;
  color: #fff;
  font-size: 0.85rem;
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: bold;
}
.product-price-block .product-stock {
  order: 3;
}

/* ===== АДАПТИВ ДЛЯ СТРАНИЦЫ ТОВАРА (ТЕЛЕФОН) ===== */
@media (max-width: 480px) {
  .product-price-block {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .product-price-block .product-stock {
    order: 4; /* ниже цены */
    width: 100%;
    margin-top: 4px;
  }
  .product-price-block .product-price {
    font-size: 1.8rem;
  }
}

/* ===== РЕКОМЕНДАЦИИ (5 колонок на ПК) ===== */
.recommendations .catalog {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1024px) {
  .recommendations .catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .recommendations .catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ===== РЕКОМЕНДАЦИИ: ховеры на ПК ===== */
.recommendations .product-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
  .recommendations .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  }
}

/* ===== РАСПОЛОЖЕНИЕ ЭЛЕМЕНТОВ НА СТРАНИЦЕ ТОВАРА ===== */
.product-details {
  display: flex;
  flex-direction: column;
}

.product-button {
  margin: 10px 0 10px 0;
}

.product-description-full {
  margin-bottom: 0;
}

.product-contact-block {
  margin-top: 8px;
}

.product-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #aaa;
}

.product-contact .contact-link {
  color: #f0c040;
  text-decoration: none;
  font-weight: bold;
}

/* ===== БОКОВЫЕ ПЕРСОНАЖИ (ТОЛЬКО НА ПК) ===== */
.side-character {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  display: block;
}

.side-character-left {
  left: 0;
}

.side-character-right {
  right: 0;
}

.side-character img {
  height: 75vh;
  width: auto;
  max-height: 85vh;
  opacity: 0.7;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  transition: opacity 0.3s;
}

.side-character img:hover {
  opacity: 0.9;
}

/* Скрываем на экранах меньше 1200px (планшеты, телефоны) */
@media (max-width: 1200px) {
  .side-character {
    display: none;
  }
}

/* На очень широких экранах можно увеличить отступы */
@media (min-width: 1600px) {
  .side-character-left {
    left: 20px;
  }
  .side-character-right {
    right: 20px;
  }
}

/* Отступы для контейнера на ПК, чтобы не перекрывалось персонажами */
@media (min-width: 1200px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* ===== СТРАНИЦА "О НАС" ===== */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.about-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.about-gallery img:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .about-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .about-gallery img {
    height: auto;
    max-height: 280px;
  }
}