:root{--accent:#8A2BE2;--bg:#ffffff;--text:#111;--muted:#666;--border:#eee;--footer:#0f0f15}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}
html{scroll-behavior:smooth}
html{scroll-padding-top: 100px} /* Отступ для якорных ссылок с учетом высоты шапки */
.container{max-width:1140px;margin:0 auto;padding:0 16px}
/* 2K/4K: ограничение ширины контента для корректного отображения блоков */
@media (min-width: 1440px){.container{max-width:1320px;padding:0 24px}}
@media (min-width: 1920px){.container{max-width:1600px;padding:0 32px}}

/* ==================== ШАПКА ==================== */
.header{background:rgba(255,255,255,.95);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--border);box-shadow:0 2px 10px rgba(0,0,0,0.1)}
.sticky{position:sticky;top:0;z-index:1000}
.header-inner{display:flex;align-items:center;gap:16px;min-height:72px;padding:10px 16px;flex-wrap:wrap}
.logo{display:flex;align-items:center;text-decoration:none;margin-right:8px}
.logo img{height:36px;width:auto;display:block}

/* Навигация: две строки — категории сверху, три кнопки по центру снизу */
.nav{display:flex;flex-direction:column;align-items:stretch;gap:6px;flex:1;min-width:0}
.nav-row{display:flex;align-items:center;gap:4px}
.nav-row-categories{flex-wrap:wrap}
.nav-row-buttons{justify-content:center;gap:8px}
.nav a{
  padding:8px 12px;
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  font-size:0.95rem;
  border-radius:8px;
  transition:all 0.2s ease;
  white-space:nowrap
}
.nav a:hover{
  color:var(--accent);
  background:rgba(138,43,226,0.08)
}

/* Три кнопки (Аксессуары, Trade-in, Покупателям) — один стиль, по центру во второй строке */
.nav .nav-btn{
  font-weight:600;
  color:#6c757d;
  background:rgba(108,117,125,0.08);
  border:1px solid rgba(108,117,125,0.15)
}
.nav .nav-btn:hover{
  color:white;
  background:var(--accent);
  border-color:var(--accent);
  transform:translateY(-1px);
  box-shadow:0 2px 8px rgba(138,43,226,0.25)
}

/* Кнопка каталога */
.catalog-btn{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  background:var(--accent);
  color:white;
  text-decoration:none;
  border-radius:8px;
  font-weight:600;
  font-size:0.95rem;
  transition:all 0.3s ease;
  white-space:nowrap
}
.catalog-btn:hover{
  background:#7B2CF5;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(138,43,226,0.3)
}

/* Действия в шапке */
.header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto
}

/* Поиск в шапке */
.header-search{
  position: relative;
  flex: 1 1 340px;
  max-width: 440px;
  min-width: 240px;
}
.header-search__box{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid #e6e9ef;
  background:#fff;
  border-radius:12px;
  height:42px;
  padding:0 10px;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.header-search__box:focus-within{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138,43,226,.14);
}
.header-search__icon{
  color:#8892a6;
  font-size:15px;
}
.header-search__input{
  border:none;
  outline:none;
  width:100%;
  font-size:.92rem;
  color:#1f2937;
  background:transparent;
}
.header-search__input::placeholder{
  color:#94a3b8;
}
.header-search__clear{
  border:none;
  background:transparent;
  color:#9aa3b2;
  display:none;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  cursor:pointer;
}
.header-search__clear:hover{ color:#6b7280; }
.header-search__dropdown{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  background:#fff;
  border:1px solid #e7eaf1;
  border-radius:12px;
  box-shadow:0 16px 35px rgba(16,24,40,.14);
  overflow:hidden;
  z-index:1100;
}
.header-search__item{
  display:block;
  text-decoration:none;
  padding:10px 12px;
  border-bottom:1px solid #f1f3f7;
  transition:background-color .15s ease;
}
.header-search__item:last-child{ border-bottom:none; }
.header-search__item:hover,
.header-search__item.is-active{
  background:rgba(138,43,226,.08);
}
.header-search__item-main{
  color:#111827;
  font-size:.92rem;
  font-weight:600;
  line-height:1.2;
}
.header-search__item-sub{
  color:#6b7280;
  font-size:.79rem;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.header-search__empty{
  padding:11px 12px;
  color:#6b7280;
  font-size:.86rem;
}

/* Кнопка профиля */
.profile-btn{
  width:40px;
  height:40px;
  padding:0;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #dee2e6;
  background:white;
  transition:all 0.3s ease
}
.profile-btn:hover{
  border-color:var(--accent);
  background:rgba(138,43,226,0.08);
  transform:scale(1.05)
}
.profile-btn i{
  font-size:18px;
  color:var(--text)
}
.profile-btn:hover i{
  color:var(--accent)
}

/* Кнопка корзины */
.cart-btn{
  padding:8px 16px;
  border-radius:8px;
  background:white;
  border:2px solid var(--accent);
  color:var(--accent)!important;
  font-weight:600;
  font-size:0.9rem;
  transition:all 0.3s ease;
  white-space:nowrap
}
.cart-btn:hover{
  background:var(--accent);
  color:white!important;
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(138,43,226,0.3)
}
.cart-btn i{
  font-size:16px
}

/* Оптимизация изображений на странице продукта */
.product-image-container {
  width: 100%;
  height: 400px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.3s ease;
}

/* Красивая кнопка "В корзину" */
.add-to-cart-btn {
  background: linear-gradient(135deg, #8A2BE2 0%, #7B2CF5 50%, #6C5CE7 100%);
  border: none;
  border-radius: 16px;
  padding: 16px 32px;
  color: white;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-shadow: 0 8px 25px rgba(138, 44, 226, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(138, 44, 226, 0.4);
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn i {
  font-size: 20px;
}

.add-to-cart-btn .price {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Свободный блок - информационная карточка */
.product-info-card {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border: 1px solid #e8ecf7;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.product-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8A2BE2, #7B2CF5, #6C5CE7);
}

.product-info-card h3 {
  color: #2d3748;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-info-card h3 i {
  color: #8A2BE2;
  font-size: 18px;
}

.product-info-card p {
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* Мобильная адаптация для изображений продукта */
@media (max-width: 768px) {
  .header-search{
    order: 98;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 100%;
  }
  .header-search__box{
    height:40px;
    border-radius:10px;
  }
  .header-search__input{
    font-size:.9rem;
  }
  .product-image-container {
    height: 300px;
    margin-bottom: 20px;
  }
  
  .add-to-cart-btn {
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 12px;
  }
  
  .add-to-cart-btn .price {
    font-size: 14px;
    padding: 3px 10px;
  }
  
  .product-info-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .product-info-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .product-image-container {
    height: 250px;
    border-radius: 8px;
  }
  
  .add-to-cart-btn {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 10px;
    gap: 8px;
  }
  
  .add-to-cart-btn i {
    font-size: 16px;
  }
  
  .add-to-cart-btn .price {
    font-size: 13px;
    padding: 2px 8px;
  }
  
  .product-info-card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
  
  .product-info-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
}

/* ==================== КАРТОЧКИ ТОВАРОВ (ХИТЫ ПРОДАЖ) ==================== */

/* Изображение в карточке - точно как в каталоге */
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Карточка товара */
.card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background: #fff;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.15);
  transform: translateY(-4px);
  border-color: rgba(138, 43, 226, 0.2);
}

/* Стили для селекторов Apple Watch */
.size-selector, .material-selector, .strap-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.size-option, .material-option, .strap-option {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-width: 60px;
}

.size-option:hover, .material-option:hover, .strap-option:hover {
  border-color: var(--accent);
  background: #f8f9ff;
}

.size-option.selected, .material-option.selected, .strap-option.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

/* Мобильная адаптация для селекторов часов */
@media (max-width: 576px) {
  .size-option, .material-option, .strap-option {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 50px;
  }
  
  .size-selector, .material-selector, .strap-selector {
    gap: 6px;
  }
}

/* Старые стили удалены - используются новые из начала файла (строки 60-106) */

/* Стили для уведомления об авторизации */
.auth-notice {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  border-radius: 15px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.auth-notice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #7a1fd1);
}

.auth-notice .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.auth-notice .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .header-inner {
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
  }
  
  .logo img {
    height: 28px;
  }
  
  .nav {
    display: none; /* Скрываем навигацию на мобильных */
  }
  
  .header-actions {
    gap: 6px;
    margin-left: auto; /* Важно! Прижимаем вправо */
  }
  
  .profile-btn {
    width: 36px;
    height: 36px;
  }
  
  .profile-btn i {
    font-size: 16px;
  }
  
  .cart-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .catalog-btn {
    display: none; /* Скрываем на планшетах, есть бургер */
  }
  
  .phone-link {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 8px;
    min-height: 52px;
    padding: 6px 10px;
  }
  
  .logo img {
    height: 26px;
  }
  
  .header-actions {
    gap: 4px;
    margin-left: auto; /* Прижимаем вправо */
  }
  
  .profile-btn {
    width: 32px;
    height: 32px;
  }
  
  .profile-btn i {
    font-size: 14px;
  }
  
  .cart-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  
  .cart-btn i {
    font-size: 14px;
  }
  
  .phone-link {
    padding: 5px;
  }
  }
  
  .cart-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .catalog-btn {
    padding: 4px 8px;
    font-size: 12px;
  }

.catalog-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
}

/* ==================== HEADER POLISH ==================== */
/* Десктоп: аккуратная шапка в единой стилистике без конфликтов */
@media (min-width: 993px) {
  .header-inner {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 72px !important;
    padding: 10px 16px !important;
  }

  .burger-menu-btn {
    display: none !important;
  }

  .catalog-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
  }

  .nav {
    order: 2;
    flex: 1 1 auto;
    min-width: 430px;
    max-width: 640px;
    gap: 4px;
    margin: 0 !important;
  }

  .nav .nav-row-categories {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
  }
  .nav .nav-row-categories::-webkit-scrollbar {
    display: none;
  }

  .nav .nav-row-buttons {
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
  }

  .nav a {
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .header-search {
    order: 3;
    flex: 0 1 320px;
    min-width: 260px;
    max-width: 340px;
  }

  .header-search__box {
    height: 40px;
    border-radius: 10px;
  }

  .header-actions {
    order: 4;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 0;
  }

  .phone-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* Узкие ноутбуки: освобождаем место под навигацию/поиск */
@media (min-width: 993px) and (max-width: 1250px) {
  .phone-number {
    display: none;
  }
  .phone-link {
    padding: 8px 10px;
  }
  .header-search {
    flex-basis: 280px;
    max-width: 300px;
    min-width: 220px;
  }
  .nav {
    min-width: 390px;
  }
}

/* Планшет/мобилка: поиск отдельной строкой, не мешает кнопкам */
@media (max-width: 992px) {
  .header-search {
    order: 98;
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
    margin-top: 4px;
  }

  .header-search__box {
    height: 40px;
    border-radius: 10px;
  }

  .header-actions {
    margin-left: auto;
  }
}

/* Стили для сглаженной формы цены */
.price-badge {
  background: transparent;
  color: #6f42c1;
  padding: 12px 20px;
  border-radius: 0 0 15px 15px;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  margin-top: -1px;
  border: 2px solid #6f42c1;
  border-top: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(111, 66, 193, 0.1);
}

/* Плашка для товаров, доступных по предзаказу */
.preorder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #ff6b6b 0%, #f06595 100%);
  box-shadow: 0 6px 14px rgba(240, 101, 149, 0.32);
}

.preorder-badge-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.preorder-badge-product {
  margin-bottom: 12px;
}

/* Стили для карточек товаров */
.card .card-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6em;
}

.card .card-text {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.4;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

/* Стили для кнопок в карточках товаров */
.card .btn-primary {
  border-radius: 15px 15px 0 0;
  border-bottom: none;
  margin-bottom: 0;
  background: linear-gradient(135deg, #8A2BE2 0%, #7B2CF5 50%, #6C5CE7 100%) !important;
  background-color: transparent !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(138, 44, 226, 0.3) !important;
}

.card .btn-primary:hover {
  background: linear-gradient(135deg, #8A2BE2 0%, #7B2CF5 50%, #6C5CE7 100%) !important;
  background-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(138, 44, 226, 0.4) !important;
}


/* Стили для обычных ссылок навигации */
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nav-link:hover {
  color: var(--accent);
  background-color: rgba(138, 43, 226, 0.1);
}

.nav-link.active {
  color: var(--accent);
  background-color: rgba(138, 43, 226, 0.15);
  font-weight: 600;
}

.cart-btn{margin-left:auto}
.hidden{display:none}
.spacer{flex:1}

/* Стили для блока "Техника & Аксессуары Apple" */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding-top: 20px;
}

.hero-bg {
  /* Показываем hero-image целиком (без обрезки) */
  background: url('/img/hero-image.png') center/contain no-repeat;
  background-color: transparent;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phones {
  position: relative;
  width: 100%;
  height: 300px;
  display: none;
}

.phone {
  position: absolute;
  width: 60px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.phone-1 {
  top: 20px;
  left: 20px;
  transform: rotate(-15deg);
  background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
}

.phone-2 {
  top: 40px;
  left: 100px;
  transform: rotate(10deg);
  background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.phone-3 {
  top: 60px;
  left: 180px;
  transform: rotate(-5deg);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.phone-4 {
  top: 30px;
  left: 260px;
  transform: rotate(15deg);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-text {
  position: absolute;
  top: 20px;
  right: 30px;
  text-align: right;
  display: none;
}

.preorder-text {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1;
}

.brand-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-top: 5px;
}

.hero-buttons .btn {
  min-width: 180px;
}

/* Стили для footer */
.footer {
  background-color: #343a40;
  border-top: 1px solid #495057;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-contact p,
.footer-requisites p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ffffff !important;
}

.footer h6 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff !important;
}

/* Стили для уведомления о повышении цены */
#price-increase-notice {
  border-left: 4px solid #ffc107 !important;
  background-color: #fff3cd !important;
  border-color: #ffeaa7 !important;
  color: #856404 !important;
  font-size: 0.9rem !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  margin-top: 12px !important;
  animation: slideInDown 0.3s ease-out !important;
}

#price-increase-notice .bi {
  color: #ffc107 !important;
}

#price-increase-notice strong {
  color: #856404 !important;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для чекбокса согласия */
#privacy-agreement {
  margin-top: 0 !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
}

label[for="privacy-agreement"] {
  line-height: 1.4 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  cursor: pointer !important;
}

/* Стили для корзины */
.cart-item {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.cart-item .btn-outline-danger {
  transition: all 0.2s ease;
}

.cart-item .btn-outline-danger:hover {
  transform: scale(1.1);
}

/* Стили для итогов корзины */
.totals-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
}

.totals-card .card-body {
  padding: 1.5rem;
}

/* Стили для формы заказа */
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.25);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.25);
}

/* Стили для кнопки оформления заказа */
.btn-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Дополнительные стили для корзины */
.cart-header {
  background: linear-gradient(135deg, #8a2be2, #7a1fd1);
  border: none;
}

.cart-header h4 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Стили для полей формы */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.15);
  transform: translateY(-1px);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Стили для селекта */
.form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.15);
  transform: translateY(-1px);
}

/* Стили для чекбокса согласия */
.form-check {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin: 1rem 0;
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.1em;
}

.form-check-label {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-left: 0.5rem;
}

/* Стили для уведомлений */
.alert {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Анимация для карточек товаров */
.cart-item {
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для пустой корзины */
.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-cart i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Улучшенные стили для итогов */
.totals-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.totals-card .card-body {
  padding: 2rem;
}

.totals-card hr {
  border-color: #dee2e6;
  opacity: 0.5;
  margin: 1.5rem 0;
}

/* Стили для кнопки очистки корзины */
#clear-cart-btn {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

#clear-cart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Переопределение Bootstrap цветов */
.btn-primary{background-color:var(--accent);border-color:var(--accent)}
.btn-primary:hover{background-color:#8a2be2;border-color:#8a2be2}
.btn-outline-primary{color:var(--accent);border-color:var(--accent)}
.btn-outline-primary:hover{background-color:var(--accent);border-color:var(--accent)}
.text-primary{color:var(--accent)!important}
.bg-primary{background-color:var(--accent)!important}

/* Слайдер */
.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  text-align: center;
  color: white;
  z-index: 10;
  max-width: 600px;
  padding: 50px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-btn {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(138, 43, 226, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.slide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.slide-btn:hover {
  background: rgba(138, 43, 226, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
  color: white;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.slide-btn:hover::before {
  left: 100%;
}

.slide-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
}

.slider-nav:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.1);
}

.benefits{background:#fafafe;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}

.footer{background:var(--footer);color:#fff;padding:32px 0;margin-top:auto}
body{min-height:100vh;display:flex;flex-direction:column}
main{flex:1}

/* Модальное окно */
.modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:2000}
.modal.hidden{display:none}
.modal-content{background:#fff;border-radius:16px;max-width:600px;width:90%;max-height:80vh;overflow-y:auto;position:relative;box-shadow:0 20px 60px rgba(0,0,0,0.3)}
@media (max-width: 768px) {
  .modal-content{width:95%;max-width:none;margin:10px;max-height:90vh}
  .modal-header{padding:15px 20px 0}
  .modal-body{padding:0 20px}
  .modal-footer{padding:15px 20px 20px}
  
  /* Мобильная адаптивность для карточек товаров */
  .col-md-6.col-lg-4.col-xl-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding:20px 24px 0}
.modal-body{padding:0 24px}
.modal-footer{padding:16px 24px 24px;display:flex;justify-content:center}

/* Кнопка закрытия модального окна */
.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Стили для кнопки в модальном окне */
.modal-footer .btn-primary {
  border-radius: 6px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  height: auto !important;
  min-height: auto !important;
  line-height: 1.2 !important;
  width: auto !important;
  max-width: 300px !important;
}

/* Цена внутри кнопки */
.price-in-button {
  background: rgba(255, 255, 255, 0.2) !important;
  padding: 3px 6px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  margin-left: 8px !important;
}
.modal img{width:100%;height:250px;object-fit:cover;border-radius:12px;margin-bottom:16px}
.modal .img-fluid{max-width:100%;height:auto;object-fit:contain;border-radius:12px;margin-bottom:16px}
@media (max-width: 768px) {
  .modal .img-fluid{max-height:200px;object-fit:contain}
  .modal img{height:200px;object-fit:contain}
  
  /* Адаптивность кнопки для планшетов */
  .modal-footer .btn-primary {
    max-width: 250px !important;
    font-size: 0.8rem !important;
  }
}

@media (max-width: 576px) {
  .modal .img-fluid{max-height:150px;object-fit:contain}
  .modal img{height:150px;object-fit:contain}
  
  /* Адаптивность для мобильных */
  .modal-header {
    padding: 15px 20px 0 !important;
  }
  
  .modal-body {
    padding: 0 20px !important;
  }
  
  .modal-footer {
    padding: 15px 20px 20px !important;
  }
  
  .modal-footer .btn-primary {
    max-width: 200px !important;
    font-size: 0.75rem !important;
    padding: 8px 12px !important;
  }
  
  .price-in-button {
    font-size: 0.7rem !important;
    padding: 2px 4px !important;
  }
  
  .btn-close {
    font-size: 20px;
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  /* Адаптивность для очень маленьких экранов */
  .modal-content {
    width: 98% !important;
    margin: 5px !important;
    max-height: 95vh !important;
  }
  
  .modal .img-fluid {
    max-height: 120px !important;
  }
  
  .modal img {
    height: 120px !important;
  }
  
  .modal-footer .btn-primary {
    max-width: 180px !important;
    font-size: 0.7rem !important;
    padding: 6px 10px !important;
  }
  
  .price-in-button {
    font-size: 0.65rem !important;
    padding: 1px 3px !important;
  }
  
  .modal-header h3 {
    font-size: 1.1rem !important;
  }
}
.modal h3{margin:0 0 8px;font-size:24px;font-weight:600}
.modal .price{font-size:24px;color:var(--accent);margin:12px 0;font-weight:700}
.modal .specs{background:#f8f9fa;padding:16px;border-radius:12px;margin:16px 0;border:1px solid #e9ecef}
.modal .specs div{margin:6px 0;padding:4px 0}

/* Адаптивность для слайдера */
@media (min-width: 1200px) {
  .hero-slider {
    height: 70vh;
    min-height: 500px;
  }
  
  .slide-title {
    font-size: 4rem;
  }
  
  .slide-description {
    font-size: 1.3rem;
  }
  
  .slide-btn {
    font-size: 18px;
    padding: 16px 32px;
    margin-top: 25px;
  }
  
  .slide-content {
    padding: 60px 30px;
  }
}

@media (max-width: 1024px) {
  .hero-slider {
    height: 60vh;
    min-height: 400px;
  }
  
  .slide-title {
    font-size: 2.5rem;
  }
  
  .slide-description {
    font-size: 1.1rem;
  }
  
  .slide-btn {
    font-size: 16px;
    padding: 14px 28px;
    margin-top: 20px;
  }
  
  .slide-content {
    padding: 40px 20px;
    text-align: center;
  }
}

/* Планшеты (768px - 1024px) */
@media (max-width: 992px) and (min-width: 769px) {
  .hero-slider {
    height: 55vh;
    min-height: 380px;
  }
  
  .slide-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  .slide-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .slide-btn {
    font-size: 15px;
    padding: 12px 24px;
    margin-top: 15px;
    display: inline-block;
  }
  
  .slide-content {
    padding: 30px 15px;
    text-align: center;
    position: relative;
    z-index: 10;
  }
  
  .slider-nav {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 50vh;
    min-height: 350px;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .slide-description {
    font-size: 1rem;
  }
  
  .slide-btn {
    font-size: 16px;
    padding: 14px 28px;
    margin-top: 15px;
    display: inline-block;
  }
  
  .slide-content {
    padding: 25px 15px;
    text-align: center;
    position: relative;
    z-index: 10;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .slider-nav.prev {
    left: 15px;
  }
  
  .slider-nav.next {
    right: 15px;
  }
  
  /* Адаптивная навигация */
  .header {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(15px);
  }
  
  .header-inner {
    gap: 12px;
    flex-wrap: wrap;
    min-height: 80px;
    align-items: flex-start;
    padding: 21px 0 12px 0;
  }
  
  .nav {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  
  /* На мобильных нав в две строки: категории и кнопки по центру */
  .nav .nav-row-categories { justify-content: center; }
  .nav .nav-row-buttons { justify-content: center; }
  
  .logo img {
    height: 28px;
    order: 1;
  }
  
  .nav {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 6px;
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .catalog-btn {
    padding: 10px 18px;
    font-size: 15px;
    order: 4;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    justify-self: center;
  }
  
  .nav-link {
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  .cart-btn {
    order: 2;
    margin-left: auto;
    margin-right: 8px;
  }
  
  /* Адаптивность для корзины на планшетах */
  .cart-item .row {
    flex-wrap: wrap;
  }
  
  .cart-item .col-auto {
    margin-top: 4px;
  }
  
  .cart-item .input-group {
    width: 100px !important;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    height: 40vh;
    min-height: 300px;
  }
  
  .slide-title {
    font-size: 1.5rem;
  }
  
  .slide-description {
    font-size: 0.9rem;
  }
  
  .slide-btn {
    font-size: 15px;
    padding: 12px 24px;
    margin-top: 12px;
    display: inline-block;
  }
  
  .slide-content {
    padding: 20px 10px;
    text-align: center;
    position: relative;
    z-index: 10;
  }
  
  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  /* Адаптивная навигация для очень маленьких экранов */
  .header {
    padding-top: 15px;
    padding-bottom: 15px;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(15px);
  }
  
  .header-inner {
    gap: 8px;
    padding: 21px 0 12px 0;
    min-height: 85px;
    align-items: flex-start;
  }
  
  .nav {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  
  .logo img {
    height: 24px;
    order: 1;
  }
  
  .nav {
    gap: 4px;
    margin-top: 6px;
    order: 3;
  }
  
  .nav .nav-row-buttons .nav-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .catalog-btn {
    padding: 8px 14px;
    font-size: 13px;
    order: 4;
    width: 100%;
    text-align: center;
    margin-top: 6px;
    justify-self: center;
  }
  
  .nav-link {
    padding: 4px 6px;
    font-size: 11px;
  }
  
  .cart-btn {
    font-size: 12px;
    padding: 6px 10px;
    order: 2;
    margin-left: auto;
    margin-right: 8px;
  }
  
  /* Адаптивность для корзины */
  .cart-item .row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-item .col-auto {
    margin-top: 8px;
    width: 100%;
  }
  
  .cart-item .input-group {
    width: 100% !important;
    max-width: 120px;
  }
  
  .cart-item .btn-outline-danger {
    margin-top: 8px;
  }
}

@media (max-width:576px){
  .hero{padding:30px 0}
  .hero h1{font-size:28px}
  .hero p{font-size:16px}
  .container{padding:0 12px}
  .card-body{padding:16px}
  .btn-lg{padding:12px 20px;font-size:16px}
}

/* Стили для Trade-in секции */
.tradein-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.tradein-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.tradein-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.8s ease;
  transform: scale(1.1);
  filter: brightness(0.7);
}

.tradein-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
}

/* Анимация при скролле */
.tradein-content {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.tradein-content.animate {
  opacity: 1;
  transform: translateX(0);
}

.tradein-bg-image {
  opacity: 0;
  transform: scale(1.2);
  filter: brightness(0.5);
  transition: all 1.2s ease;
}

.tradein-section.animate .tradein-bg-image {
  opacity: 1;
  transform: scale(1);
  filter: brightness(0.8);
}

/* Адаптивность для Trade-in */
@media (max-width: 768px) {
  .tradein-section {
    min-height: 400px;
  }
  
  .tradein-content {
    padding: 15px;
    margin: 10px 0;
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .tradein-section {
    min-height: 350px;
  }
  
  .tradein-content {
    padding: 12px;
    margin: 8px 0;
    max-width: 350px;
  }
}

/* Стили для карты */
.map-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#yandex-map {
  border-radius: 12px;
  overflow: hidden;
}

/* Адаптивность для карты */
@media (max-width: 768px) {
  .map-container {
    margin-top: 30px;
  }
  
  #yandex-map {
    height: 300px !important;
  }
}

@media (max-width: 576px) {
  #yandex-map {
    height: 250px !important;
  }
}

/* Стили для страницы Trade-in */
.tradein-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b69 50%, #8A29E2 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.tradein-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ff00ff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ff00ff" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="20" r="30" fill="url(%23a)"/><circle cx="80" cy="80" r="25" fill="url(%23a)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.tradein-steps {
  background: #f8f9fa;
  position: relative;
}

.step-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.6s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8A29E2, #7a1fd1);
}

.step-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8A29E2, #7a1fd1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.step-number span {
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.step-description {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.tradein-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b69 100%);
  position: relative;
}

.tradein-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="b" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ff00ff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ff00ff" stop-opacity="0"/></radialGradient></defs><circle cx="30" cy="30" r="20" fill="url(%23b)"/><circle cx="70" cy="70" r="15" fill="url(%23b)"/></svg>');
  opacity: 0.2;
  pointer-events: none;
}

/* Hover эффекты для карточек */
.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

/* Адаптивность для Trade-in страницы */
@media (max-width: 768px) {
  .tradein-hero {
    padding: 60px 0;
  }
  
  .step-card {
    padding: 20px;
    margin-bottom: 20px;
    transform: translateY(30px); /* Уменьшаем начальное смещение для мобильных */
  }
  
  .step-card.animate {
    transform: translateY(0);
  }
  
  .step-number {
    width: 50px;
    height: 50px;
  }
  
  .step-number span {
    font-size: 20px;
  }
  
  .step-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .tradein-hero {
    padding: 40px 0;
  }
  
  .step-card {
    padding: 15px;
    transform: translateY(20px); /* Еще меньше смещение для маленьких экранов */
  }
  
  .step-card.animate {
    transform: translateY(0);
  }
  
  .step-number {
    width: 45px;
    height: 45px;
  }
  
  .step-number span {
    font-size: 18px;
  }
}

/* Стили для страницы "Покупателям" */
.buyers-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b69 50%, #8A29E2 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.buyers-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="c" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ff00ff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ff00ff" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="20" r="30" fill="url(%23c)"/><circle cx="80" cy="80" r="25" fill="url(%23c)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.faq-section {
  background: #f8f9fa;
  position: relative;
}

.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.accordion-button {
  background: white;
  border: none;
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #8A29E2, #7a1fd1);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238A29E2'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

.accordion-body {
  background: white;
  padding: 25px;
  border-top: 1px solid #e9ecef;
  line-height: 1.6;
}

.accordion-body p {
  margin-bottom: 15px;
}

.accordion-body ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.accordion-body li {
  margin-bottom: 8px;
}

.contact-section {
  background: white;
}

.contact-info .btn {
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
}

.social-links .btn {
  border-radius: 20px;
  padding: 10px 20px;
  margin: 5px;
}

/* Адаптивность для страницы "Покупателям" */
@media (max-width: 768px) {
  .buyers-hero {
    padding: 60px 0;
  }
  
  .accordion-button {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  .accordion-body {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .buyers-hero {
    padding: 40px 0;
  }
  
  .accordion-button {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 15px;
  }
  
  .contact-info .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Стили для уведомления о cookies — плавное выезжание снизу */
.cookie-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 9999;
  max-width: 90%;
  backdrop-filter: blur(10px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.45s ease,
              visibility 0.5s;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
  min-width: 250px;
}

.cookie-btn {
  background: white;
  color: black;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
}

.cookie-notification.show {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Адаптивность для cookies */
@media (max-width: 768px) {
  .cookie-notification {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    border-radius: 15px;
    transform: translateY(80px);
  }
  .cookie-notification.show {
    transform: translateY(0);
  }
  
  .cookie-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .cookie-text {
    min-width: auto;
    font-size: 13px;
  }
  
  .cookie-btn {
    width: 100%;
    padding: 10px 20px;
  }
}

/* Стили для статусов заказов */
.order-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 2px 0;
}

/* Статусы заказов - разные цвета (английские классы) */
.status-pending {
  background-color: #e3f2fd;
  color: #1976d2;
}

.status-created {
  background-color: #e3f2fd;
  color: #1976d2;
}

.status-confirmed {
  background-color: #fff3e0;
  color: #f57c00;
}

.status-paid {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.status-shipped {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.status-delivered {
  background-color: #e0f2f1;
  color: #00695c;
}

.status-completed {
  background-color: #e0f2f1;
  color: #00695c;
}

.status-cancelled {
  background-color: #ffebee;
  color: #c62828;
}

.status-unknown {
  background-color: #f5f5f5;
  color: #666;
}

/* Стили для новых секций */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.about-image img {
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
}

.contacts {
  background: #fafafe;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.ip-info {
  background: #fff;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ip-info p {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Адаптивность для новых секций */
@media (max-width: 768px) {
  /* Карточки товаров на планшетах */
  .card-img-top {
    height: 180px;
    padding: 12px;
  }
  
  .hero-section {
    padding-top: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .hero-bg {
    padding: 20px;
    min-height: 300px;
  }
  
  .hero-phones {
    height: 200px;
  }
  
  .phone {
    width: 40px;
    height: 80px;
  }
  
  .phone-1 { top: 10px; left: 10px; }
  .phone-2 { top: 20px; left: 60px; }
  .phone-3 { top: 30px; left: 110px; }
  .phone-4 { top: 15px; left: 160px; }
  
  .preorder-text {
    font-size: 1.8rem;
  }
  
  .brand-text {
    font-size: 1rem;
  }
  
  .about .row {
    text-align: center;
  }
  
  .about-image {
    margin-top: 30px;
  }
  
  .contact-card {
    margin-bottom: 20px;
  }
  
  .ip-info {
    text-align: center;
  }
  
  .ip-info .row {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 40px;
  }
  
  .hero-buttons {
    margin-bottom: 25px;
  }
  
  .hero-buttons .btn {
    font-size: 16px;
    padding: 12px 20px;
  }
  
  .contact-card {
    padding: 20px 15px;
  }
  
  /* Адаптивность для карточек товаров на мобильных */
  .col-md-6.col-lg-4.col-xl-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Уменьшаем отступы между карточками */
  .row.g-4 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
  
  /* Оптимизация изображений в карточках для мобильных */
  .card-img-top {
    height: 150px !important;
    padding: 10px !important;
  }
  
  /* Улучшаем отображение карточек на мобильных */
  .card {
    border-radius: 12px !important;
  }
  
  .card-body {
    padding: 15px;
  }
  
  .ip-info {
    padding: 20px 15px;
  }
  
  .price-badge {
    font-size: 1.1rem;
    padding: 10px 16px;
    margin-top: -1px;
    letter-spacing: 0.8px;
  }
  
  .card .btn-primary {
    border-radius: 12px 12px 0 0;
  }
  
  .card .card-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 2.4em;
  }
  
  .card .card-text {
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 2.6em;
  }
}

/* Скрытие секций памяти и SIM для Apple Watch */
.watch-product .option-group:has(#memory-options),
.watch-product .option-group:has(#sim-options) {
  display: none !important;
  visibility: hidden !important;
}

/* Альтернативный способ для браузеров без поддержки :has() */
.watch-product #memory-options,
.watch-product #sim-options {
  display: none !important;
  visibility: hidden !important;
}

/* ==================== БУРГЕР-МЕНЮ ==================== */

/* Кнопка бургер-меню */
.burger-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  transition: color 0.3s ease;
}

.burger-menu-btn:hover {
  color: var(--accent);
}

.burger-menu-btn i {
  display: block;
}

/* Контейнер бургер-меню */
.burger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.burger-menu.active {
  pointer-events: all;
  opacity: 1;
}

/* Оверлей */
.burger-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.burger-menu.active .burger-menu-overlay {
  opacity: 1;
}

/* Контент меню */
.burger-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: #ffffff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

/* Шапка меню */
.burger-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.burger-menu-logo {
  height: 32px;
  width: auto;
}

.burger-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease, transform 0.3s ease;
  border-radius: 50%;
}

.burger-menu-close:hover {
  color: var(--accent);
  background: rgba(138, 43, 226, 0.1);
  transform: rotate(90deg);
}

/* Навигация */
.burger-menu-nav {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.burger-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.burger-menu-link:hover {
  background: linear-gradient(90deg, rgba(138, 43, 226, 0.08) 0%, transparent 100%);
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 24px;
}

.burger-menu-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--accent);
}

/* Контакты в меню */
.burger-menu-contacts {
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 1px solid #eee;
}

.burger-menu-contacts-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.burger-menu-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.burger-menu-contact:hover {
  color: var(--accent);
}

.burger-menu-contact i {
  font-size: 1.1rem;
  color: var(--accent);
  width: 20px;
  text-align: center;
}

/* ==================== ТЕЛЕФОН В ШАПКЕ ==================== */

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: rgba(138, 43, 226, 0.05);
  border: 1px solid rgba(138, 43, 226, 0.1);
}

.phone-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.phone-link i {
  font-size: 1.1rem;
}

.phone-number {
  white-space: nowrap;
}

/* ==================== АДАПТИВНОСТЬ ==================== */

/* Планшеты */
@media (max-width: 992px) {
  .burger-menu-btn {
    display: block;
  }
  
  .nav {
    display: none;
  }
  
  .catalog-btn {
    display: none;
  }
  
  .phone-number {
    display: none;
  }
  
  .phone-link {
    padding: 8px 12px;
    background: transparent;
    border: none;
  }
  
  .phone-link:hover {
    background: rgba(138, 43, 226, 0.1);
  }
}

/* Мобильные устройства */
@media (max-width: 576px) {
  .burger-menu-content {
    width: 280px;
  }
  
  .phone-link i {
    font-size: 1.3rem;
  }
  
  .phone-link {
    padding: 6px 10px;
  }
  
  .burger-menu-link {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  .burger-menu-contacts {
    padding: 16px;
  }
}

/* ========== БАННЕР ТЕХРАБОТ ========== */
.maintenance-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.maintenance-banner-content {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: maintenanceFadeIn 0.5s ease-out;
}

@keyframes maintenanceFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.maintenance-banner-icon {
  font-size: 64px;
  color: var(--accent, #8A2BE2);
  margin-bottom: 24px;
  animation: maintenancePulse 2s ease-in-out infinite;
}

@keyframes maintenancePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.maintenance-banner-title {
  font-size: 32px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 16px;
}

.maintenance-banner-message {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 32px;
  line-height: 1.6;
}

.maintenance-banner-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.maintenance-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent, #8A2BE2), #7B1FA2);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.maintenance-contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
  color: white;
}

.maintenance-contact-item i {
  font-size: 24px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .maintenance-banner-content {
    padding: 36px 24px;
    max-width: 90%;
  }
  
  .maintenance-banner-icon {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .maintenance-banner-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .maintenance-banner-message {
    font-size: 16px;
    margin-bottom: 24px;
  }
  
  .maintenance-contact-item {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .maintenance-contact-item i {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .maintenance-banner-content {
    padding: 32px 20px;
  }
  
  .maintenance-banner-icon {
    font-size: 40px;
  }
  
  .maintenance-banner-title {
    font-size: 20px;
  }
  
  .maintenance-banner-message {
    font-size: 14px;
  }
  
  .maintenance-contact-item {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Баннер "Предзаказ новинок" на главной */
.preorder-novelties-banner-wrap {
  margin-top: 14px;
  margin-bottom: 8px;
}

.preorder-novelties-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  background: linear-gradient(135deg, #06bc09 0%, #1fa339 55%, #217104 100%);
/*background: linear-gradient(135deg, #06bc09 0%, #1fa339 55%, #217104 100%);*/
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 10px 24px rgba(122, 44, 245, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.preorder-novelties-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(122, 44, 245, 0.34);
  color: #fff;
}

.preorder-novelties-banner__label {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.preorder-novelties-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

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

  .preorder-novelties-banner__label {
    font-size: 18px;
  }
}


