/* style.css — спецодежда "ВЕЛАРИКА" */

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

body {
  background-color: #057D99;
  color: #FDF4E3;
  font-family: 'Sofia Sans Semi Condensed', sans-serif;
  font-size: 20px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* WATERMARK для основного фона сайта */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 215, 0, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 215, 0, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

/* === ШАПКА (ПК) === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo-text {
  opacity: 0.9;
}

.logo-highlight {
  color: #FFD700;
  font-weight: 800;
}

/* Меню (центрировано на ПК) */
.overlay-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.overlay-menu ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.overlay-menu a {
  color: #FDF4E3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.overlay-menu a:hover {
  color: #FFD700;
}

/* Контакты */
.contacts {
  text-align: right;
  font-size: 1rem;
  line-height: 1.4;
}

/* === УЛУЧШЕННЫЙ ГАМБУРГЕР === */
.hamburger {
  display: none; /* По умолчанию скрыт на ПК */
  width: 50px;
  height: 50px;
  background: #FFD700;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 1100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hamburger:hover {
  background: #FFC107;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  justify-content: space-between;
  position: relative;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #057D99;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

/* Анимация в крестик при активном меню */
.overlay-menu.active ~ .hamburger .hamburger-icon span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background-color: #FFD700;
}

.overlay-menu.active ~ .hamburger .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.overlay-menu.active ~ .hamburger .hamburger-icon span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background-color: #FFD700;
}

/* Изменение цвета гамбургера при открытом меню */
.overlay-menu.active ~ .hamburger {
  background: #057D99;
  box-shadow: 0 4px 12px rgba(5, 125, 153, 0.4);
}

.overlay-menu.active ~ .hamburger:hover {
  background: #086A87;
}

/* === КНОПКА ЗАКРЫТИЯ В МЕНЮ === */
.menu-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #FFD700;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1101;
}

.menu-close-btn:hover {
  background: #FFC107;
  transform: scale(1.1) rotate(90deg);
}

.menu-close-btn span {
  color: #057D99;
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.menu-close-btn:hover span {
  transform: scale(1.2);
}

/* === КНОПКА КОРЗИНЫ === */
.cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFD700;
  color: #057D99;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1100;
}

.cart-btn:hover {
  transform: translateY(-3px);
  background: #FFC107;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF5722;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* === МОДАЛЬНОЕ ОКНО КОРЗИНЫ === */
.cart-modal {
  max-width: 500px;
}

.cart-items {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: center;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: bold;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  text-align: center;
}

.cart-item-id {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  text-align: center;
}

.cart-item-options {
  margin-bottom: 0.5rem;
}

.cart-item-option {
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
}

.cart-item-option input {
  margin-right: 0.5rem;
}

.cart-item-price {
  color: #FFD700;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  justify-content: center;
}

.quantity-btn {
  width: 25px;
  height: 25px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #FDF4E3;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
}

.quantity-value {
  margin: 0 0.5rem;
  min-width: 30px;
  text-align: center;
  font-size: 0.9rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #FF6B6B;
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cart-summary {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  text-align: center;
}

.cart-total {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #FFD700;
}

/* === ПОИСК (обновленный стиль) === */
.search-bar {
  padding: 1.5rem 2rem;
  text-align: center;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(10, 100, 120, 0.4);
  border-radius: 30px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.search-container:focus-within {
  background: rgba(10, 100, 120, 0.6);
  border-color: #FFD700;
  box-shadow: 
    0 0 0 3px rgba(255, 215, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

#searchInput {
  width: 100%;
  padding: 0.9rem 1.3rem 0.9rem 3.2rem;
  font-size: 1.4rem;
  border: none;
  background: transparent;
  color: #FDF4E3;
  outline: none;
  transition: all 0.3s;
  font-family: 'Sofia Sans Semi Condensed', sans-serif;
}

#searchInput::placeholder {
  color: rgba(253, 244, 227, 0.7);
  font-weight: 400;
}

.search-container::before {
  content: '🔍';
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #FFD700;
  font-size: 1.1rem;
  z-index: 2;
  transition: all 0.3s;
  filter: sepia(1) saturate(5) hue-rotate(5deg); /* Делаем желтым */
}

.search-container:focus-within::before {
  color: #FFC107;
  transform: translateY(-50%) scale(1.1);
  filter: sepia(1) saturate(8) hue-rotate(5deg) brightness(1.1);
}

#clearSearchBtn {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 215, 0, 0.7);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#clearSearchBtn:hover {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-50%) scale(1.1);
}

#searchInput:not(:placeholder-shown) + #clearSearchBtn,
#searchInput:focus + #clearSearchBtn {
  opacity: 1;
}

/* Убираем старый блик */
.search-glint {
  display: none;
}

/* Адаптив для поиска */
@media (max-width: 767px) {
  .search-bar {
    padding: 1rem 1rem 1.5rem;
  }
  
  .search-container {
    max-width: none;
    border-width: 1.5px;
  }
  
  #searchInput {
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    font-size: 1rem;
  }
  
  .search-container::before {
    left: 1rem;
    font-size: 1rem;
  }
  
  #clearSearchBtn {
    right: 1rem;
    font-size: 1.1rem;
  }
}

/* === НОВОСТИ (теперь без фона) === */
.news-section {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: opacity 0.3s;
  position: relative;
}

.news-section.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  padding: 0;
}

.news-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.news-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #FFD700;
  position: relative;
  z-index: 2;
}

.news-content {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.news-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* === ОБНОВЛЕННЫЕ КАРТОЧКИ С УЛУЧШЕННОЙ АНИМАЦИЕЙ БЛИКА === */
.news-card {
  background: rgba(10, 100, 120, 0.3);
  border-radius: 12px;
  overflow: hidden;
  width: 280px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Эффект стекла с улучшенной производительностью */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 215, 0, 0.1);
  background: rgba(10, 100, 120, 0.5);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.news-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

/* УЛУЧШЕННЫЙ БЛИК С transform (высокая производительность) */
.card-glint {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60px;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: 2;
  /* Аппаратное ускорение */
  will-change: transform;
  backface-visibility: hidden;
}

.news-card:hover .card-glint {
  transform: skewX(-25deg) translateX(400px);
}

/* WATERMARK "ВЕЛАРИКА" для карточек новостей */
.news-card::after {
  content: 'ВЕЛАРИКА';
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 0.7rem;
  color: rgba(255, 215, 0, 0.15);
  font-weight: 800;
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
  transform: rotate(-5deg);
  transition: all 0.4s ease;
}

.news-card:hover::after {
  color: rgba(255, 215, 0, 0.25);
  transform: rotate(-5deg) scale(1.05);
}

/* === МЕТКА NEW === */
.new-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFD700;
  color: #057D99;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
}

.news-card h3 {
  padding: 1rem;
  font-size: 1.2rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

.news-card p {
  padding: 0 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
  text-align: center;
  position: relative;
  z-index: 3;
}

.news-price {
  display: block;
  padding: 0.5rem 1rem 1rem;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  position: relative;
  z-index: 3;
}

/* Кнопка в карточке новостей */
.news-card-btn {
  margin: 0 1rem 1rem;
  width: calc(100% - 2rem);
}

/* === КАТАЛОГ С WATERMARK === */
.catalog {
  padding: 2rem 2rem 4rem;
  position: relative;
}

/* WATERMARK для секции каталога */
.catalog::before {
  content: 'ВЕЛАРИКА';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 215, 0, 0.03);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  letter-spacing: 0.5rem;
}

.catalog h2.catalog-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #FFD700;
  position: relative;
  z-index: 2;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* === ОБНОВЛЕННЫЕ КАРТОЧКИ КАТАЛОГА === */
.card {
  background: rgba(10, 100, 120, 0.3);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Эффект стекла с улучшенной производительностью */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 215, 0, 0.1);
  background: rgba(10, 100, 120, 0.5);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
  width: 100%;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.card:hover img {
  transform: scale(1.08);
}

.card:hover .card-glint {
  transform: skewX(-25deg) translateX(400px);
}

/* WATERMARK "ВЕЛАРИКА" для карточек каталога */
.card::after {
  content: 'ВЕЛАРИКА';
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 0.7rem;
  color: rgba(255, 215, 0, 0.15);
  font-weight: 800;
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
  transform: rotate(-5deg);
  transition: all 0.4s ease;
}

.card:hover::after {
  color: rgba(255, 215, 0, 0.25);
  transform: rotate(-5deg) scale(1.05);
}

.card h3 {
  padding: 1rem;
  font-size: 1.3rem;
  flex-grow: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.card-price {
  padding: 0 1rem;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  position: relative;
  z-index: 3;
}

.card-desc {
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
  flex-grow: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

/* Кнопка в карточке каталога */
.card-btn {
  margin: 0 1rem 1rem;
  width: calc(100% - 2rem);
}

/* === РАЗДЕЛ "О НАС" === */
.about-section {
  padding: 3rem 2rem;
  text-align: center;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #FFD700;
}

.about-block {
  margin-bottom: 2.5rem;
  text-align: left;
}

.about-block h3 {
  color: #FFD700;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.about-block p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.about-block a {
  color: #FFD700;
  text-decoration: underline;
}

/* === КАРТА === */
.map-container {
  margin-top: 3rem;
}

.map-container h3 {
  font-size: 1.6rem;
  color: #FFD700;
  margin-bottom: 1rem;
  text-align: center;
}

/* === МОДАЛЬНОЕ ОКНО === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 1;
}

.modal-content {
  background: #086A87;
  color: #FDF4E3;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  margin-top: 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #FDF4E3;
  cursor: pointer;
  z-index: 10;
}

.modal-header {
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-body {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 1.5rem 1.5rem;
}

.modal-gallery {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 300px;
}

.modal-description {
  flex: 1 1 300px;
  padding-left: 1.5rem;
  font-size: 1rem;
}

.modal-description p {
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: #FFD700;
  color: #057D99;
}

.btn-primary:hover {
  background: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* === ФУТЕР === */
.footer {
  padding: 3rem 2rem 2rem;
  text-align: center;
  background: rgba(0, 50, 60, 0.3);
  margin-top: 2rem;
}

.socials h4.socials-title {
  color: #FFD700;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #FDF4E3;
  text-decoration: none;
  transition: background 0.3s;
}

.social-icons a:hover {
  background: rgba(255, 215, 0, 0.3);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

.copyright a {
  color: #FFD700;
  text-decoration: underline;
}

/* === КНОПКА НАВЕРХ === */
.scroll-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFD700;
  color: #057D99;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, transform 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1100;
}

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

.scroll-to-top:hover {
  transform: translateY(-3px);
  background: #FFC107;
}

.discounted-price {
  color: #ff4d4d;   /* ярко‑красный, можно подобрать любой оттенок */
}

/* === 📱 МОБИЛЬНЫЕ И ПЛАНШЕТЫ (<1024px) === */
@media (max-width: 1023px) {
  /* Гамбургер — в правом нижнем углу */
  .hamburger {
    display: flex;
  }

  /* Кнопка закрытия в меню */
  .menu-close-btn {
    display: flex;
  }

  /* Шапка — колонка */
  .header {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1rem;
    gap: 0.8rem;
  }

  .logo {
    font-size: 1.5rem;
    order: 1;
  }

  .contacts {
    order: 2;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
  }

  /* Поиск — под контактами */
  .search-bar {
    order: 3;
    padding: 1rem 1rem 1.5rem;
    width: 100%;
  }

  .search-container {
    max-width: none;
  }

  #searchInput {
    font-size: 1rem;
    padding: 0.6rem 1rem 0.6rem 2.8rem;
  }

  .search-container::before {
    font-size: 1rem;
  }

  #clearSearchBtn {
    font-size: 1.1rem;
  }

  /* Меню — оверлей (не в шапке) */
  .overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 125, 153, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }

  .overlay-menu.active {
    transform: translateX(0);
  }

  .overlay-menu ul {
    flex-direction: column;
    gap: 1.8rem;
  }

  /* Скрываем обычное меню в шапке на мобильных и планшетах */
  .header > .overlay-menu:not(.active) {
    display: none;
  }

  /* Новости — адаптив */
  .news-section {
    padding: 1.5rem 1rem;
  }

  .news-section h2 {
    font-size: 1.6rem;
  }

  .news-content {
    font-size: 1rem;
  }

  .news-cards {
    flex-direction: column;
    align-items: center;
  }

  .news-card {
    width: 100%;
    max-width: 300px;
  }

  /* Каталог */
  .catalog h2.catalog-title {
    font-size: 1.7rem;
  }

  /* О нас */
  .about-block {
    text-align: center;
  }

  .about-block h3 {
    font-size: 1.3rem;
  }

  .about-block p {
    text-align: left;
  }
  
  /* Корзина и кнопки в мобильном виде */
  .cart-btn {
    bottom: 20px;
    right: 20px;
  }
  
  .hamburger {
    bottom: 90px;
    right: 20px;
  }
  
  .scroll-to-top {
    bottom: 160px;
    right: 20px;
  }
}

/* === 📱 МОБИЛЬНЫЕ (<768px) ДОПОЛНИТЕЛЬНЫЕ СТИЛИ === */
@media (max-width: 767px) {
  /* Дополнительные стили только для мобильных */
  .search-container {
    max-width: 500px;
  }
  .news-cards {
    gap: 1.5rem;
  }
  
  .news-card {
    max-width: 100%;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* АДАПТИВ ДЛЯ WATERMARK НА МОБИЛЬНЫХ */
  .card::after, .news-card::after {
    font-size: 0.6rem;
    bottom: 10px;
    right: 10px;
  }
  
  .card-glint, .news-card .card-glint {
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  
  .card:hover .card-glint, .news-card:hover .card-glint {
    transform: skewX(-25deg) translateX(600px);
  }

  /* Watermark для каталога на мобильных */
  .catalog::before {
    font-size: 4rem;
    letter-spacing: 0.3rem;
  }
}

/* === ПЛАНШЕТЫ (768–1023px) ДОПОЛНИТЕЛЬНЫЕ СТИЛИ === */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Дополнительные стили только для планшетов */
  .search-container {
    max-width: 500px;
  }
  .news-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-section {
    padding: 2rem 1.5rem;
  }

  /* Watermark для каталога на планшетах */
  .catalog::before {
    font-size: 6rem;
  }
}

/* Стили для ПК (гамбургер скрыт) */
@media (min-width: 1024px) {
  .news-section {
    position: relative;
  }

  .news-section::before,
  .news-section::after {
    content: 'ВЕЛАРИКА';
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    color: rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    pointer-events: none;
  }

  .news-section::before {
    left: 2%;
  }

  .news-section::after {
    right: 2%;
  }
  .hamburger {
    display: none;
  }

  .menu-close-btn {
    display: none;
  }
  
  /* На ПК кнопка "наверх" выше корзины */
  .scroll-to-top {
    bottom: 90px;
    right: 20px;
  }
  
  .cart-btn {
    bottom: 20px;
    right: 20px;
  }
}