/* Self-hosted Inter Variable */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Sticky footer layout */
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Вставной заголовок через #site-header */
#site-header { display: block; }

/* Общий чёрный подвал */
.footer { 
    background: #000; 
    color: #ccc; 
    padding: 48px 0 24px; 
    margin-top: 32px; 
}

.footer a { 
    color: #ccc; 
    text-decoration: none; 
    transition: color 0.2s ease;
}

.footer a:hover { 
    color: #fff; 
    text-decoration: none; 
}

.footer-content { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 32px; 
    margin-bottom: 32px; 
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 14px;
    color: #ccc;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-phone {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.footer-hours {
    font-size: 14px;
    color: #999;
}

.footer-empty {
    font-size: 14px;
    color: #999;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.footer-copy { 
    font-size: 12px; 
    color: #777; 
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    font-size: 14px;
    color: #ccc;
}

@media (max-width: 1024px) {
    .footer-content { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 24px; 
    }
}

@media (max-width: 768px) { 
    .footer-content { 
        grid-template-columns: 1fr; 
        gap: 24px; 
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

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

/* Черная полоска сверху */
.top-bar { background-color: #000; color: #ccc; padding: 8px 0; font-size: 12px; }
.top-bar-content { display: flex; justify-content: flex-start; align-items: center; gap: 40px; }
.top-bar a { color: #ccc; text-decoration: none; margin-left: 0px; }
.location { color: #fff; position: relative; }
.location-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: #fff; font: inherit; cursor: pointer; }
.location-icon {
  flex-shrink: 0;
}

.location-arrow {
  flex-shrink: 0;
}
.location-dropdown { position: absolute; top: 110%; left: 0; background: #111; border: 1px solid #2a2a2a; border-radius: 8px; padding: 6px; display: none; min-width: 140px; z-index: 50; }
.location-dropdown.open { display: block; }
.location-option { width: 100%; text-align: left; padding: 8px 10px; background: transparent; border: none; color: #ccc; border-radius: 6px; cursor: pointer; }
.location-option:hover { background: #1e1e1e; color: #fff; }

.top-bar a:hover { text-decoration: underline; }
.nav-links a { margin-left: 20px; }
.nav-links a:first-child { margin-left: 0; }
.cities-question { margin-left: 20px; }

/* Блок контактов справа в чёрной полосе */
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.top-actions .top-phone { color: #ccc; text-decoration: none; font-weight: 600; }

/* Онлайн статус с зеленой точкой */
.online-status {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  /* Скрываем только навигационные ссылки */
  .top-bar .nav-links, 
  .top-bar .cities-question { 
    display: none; 
  }
  
  /* Показываем top-actions на мобиле */
  .top-actions { 
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  /* Показываем номер телефона текстом */
  .top-phone {
    display: inline;
    font-size: 11px;
  }
  
  /* Упрощаем отступы для компактности */
  .top-bar-content {
    gap: 12px;
  }
}

/* Sticky header на мобиле */
@media (max-width: 768px) {
  .header-main.sticky-mobile {
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 16px 16px 16px 16px;
    overflow: hidden;
  }
  
  /* Когда кликнули на шапку - становится полностью видимой */
  .header-main.sticky-mobile.sticky-mobile-active {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  /* Добавляем отступ сверху для body, чтобы контент не прыгал */
  body.has-sticky-header {
    padding-top: 69px;
  }
}

/* Белая полоска с логотипом и поиском */
.header-main { background-color: #fff; height: 61px; border-bottom: 1px solid #e5e7eb; }
.header-main .container { height: 100%; }
.header-main-content { display: flex; align-items: center; height: 100%; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; height: 100%; min-width: 0; }
.logo-img { height: 45px; width: auto; display: block; max-width: 100%; }
.search { flex: 1; /* margin-left убран, отступы задаём через сетку на мобиле и через gap на контейнере при необходимости */ min-width: 0; }
.search-wrap { position: relative; width: 100%; min-width: 0; }
.search-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.search-input { width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; outline: none; background-color: #f9fafb; color: #374151; }
.search-input::placeholder { color: #9ca3af; }
.search-input:focus { border-color: #10b981; background-color: #fff; }

/* Search dropdown */
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 60; overflow: hidden; }
.search-dropdown:empty { display: none; }
.search-suggest-head { display: flex; justify-content: space-between; padding: 12px 14px; font-weight: 700; color: #111827; border-bottom: 1px solid #f1f5f9; }
.search-suggest-head .right { color: #10b981; text-decoration: none; }
.search-suggest-list { list-style: none; }
.search-suggest-item { border-bottom: 1px solid #f1f5f9; }
.search-suggest-item:last-child { border-bottom: none; }
.suggest-link { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; color: inherit; }
.suggest-link:hover { background: #f9fafb; }
.suggest-link .thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #f3f4f6; }
.suggest-link .title { font-weight: 600; line-height: 1.2; }
.suggest-link .price { font-weight: 800; color: #16a34a; }
.search-suggest.empty { padding: 14px; color: #6b7280; }
.search-suggest-more { display: inline-block; margin-top: 8px; color: #10b981; text-decoration: none; font-weight: 700; }

/* Full-bleed обложка */
.hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  background: url('image/covers/Section.png') center/cover no-repeat;
}
/* responsive источники через CSS на брейкпоинтах */
@media (max-width: 1200px) {
  .hero { background-image: url('image/covers/Section-1.png'); min-height: 60vh; }
}
@media (max-width: 768px) {
  .hero { background-image: url('image/covers/Section-2.png'); min-height: 48vh; }
}

/* затемняющий градиент слева для читаемости текста */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 35%, rgba(0,0,0,0.05) 65%, rgba(0,0,0,0) 100%);
}

.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: inherit; }
.hero-copy { max-width: 560px; color: #fff; padding: 48px 0; }
.hero-title { font-size: 44px; line-height: 1.1; font-weight: 800; margin-bottom: 12px; }
.hero-subtitle { font-size: 22px; line-height: 1.4; opacity: 0.95; margin-bottom: 20px; }
.hero-btn { display: inline-block; padding: 12px 20px; background: #fff; color: #111; text-decoration: none; border-radius: 6px; font-weight: 700; border: 1px solid rgba(0,0,0,0.12); }
.hero-btn:hover { background: #f3f4f6; }

@media (max-width: 768px) {
  .hero-copy { max-width: 90%; padding: 24px 0; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .hero-btn { padding: 10px 16px; border-radius: 6px; }
}

/* Блок иконок категорий под обложкой */
.category-icons { background: #fff; padding: 20px 0; }
.category-icons-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.category-icon-item { text-align: center; text-decoration: none; color: inherit; min-width: 0; }
.category-icon { width: 100%; aspect-ratio: 19/13; border-radius: 8px; margin: 0 auto 8px; background-color: transparent; background-position: center; background-repeat: no-repeat; background-size: 70% auto; }
.category-label { font-size: 16px; font-weight: 700; }
.category-label.iphone { color: #2d5a3d; }

/* Бренды */
.brands { background: #fff; padding: 24px 0; }
.brands-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 32px; }
.brand-logo { height: 40px; width: auto; max-width: 100%; object-fit: contain; justify-self: center; filter: grayscale(100%); }

/* Секции товаров (рестайлинг) */
.section-title { font-size: 28px; font-weight: 700; margin: 24px 0; color: #111827; }
.page-title { font-size: 32px; font-weight: 800; margin: 24px 0; color: #111827; text-align: center; }
.container > .breadcrumbs { font-size: 14px; color: #9ca3af; display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.container > .breadcrumbs a { color: #9ca3af; text-decoration: none; }
.container > .breadcrumbs a:hover { text-decoration: underline; }
.products { background: #fff; padding: 8px 0 24px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 0;
  background: #fff;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.products-grid .product-card {
  margin: 0;
}
.product-card:hover {
  z-index: 1;
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.product-card .product-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 2; }
.badge { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 4px 8px; line-height: 1; background: rgba(255,255,255,0.92); color: #111; border: 1px solid #e5e7eb; backdrop-filter: blur(2px); }
.badge-warranty { background: rgba(255,255,255,0.92); color: #111; border-color: #e5e7eb; }
.badge-sale { background: rgba(255,255,255,0.92); color: #111; border-color: #e5e7eb; }
.badge-color { background: rgba(59, 130, 246, 0.9); color: white; border-color: rgba(59, 130, 246, 0.3); }
.badge-memory { background: rgba(16, 185, 129, 0.9); color: white; border-color: rgba(16, 185, 129, 0.3); }

/* Кнопка добавления в карточке */
.product-actions { margin-top: auto; display: block; width: 100%; }
.add-btn { width: 100%; display: block; text-align: center; border-radius: 8px; padding: 12px; cursor: pointer; font-weight: 700; background: #2d5a3d; color: #fff; border: 1px solid #2d5a3d; }
.add-btn:hover { filter: brightness(1.05); }

/* Стабильные миниатюры каталога */
.product-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  min-height: clamp(53px, 6.4vw, 83px);
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  position: relative;
}
.product-thumb img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain; /* картинка попадает по размеру */
  display: block;
  transform: none; /* убираем зум */
}
@media (max-width: 768px) {
  .product-thumb img { transform: none; }
}

.product-main-image { position: relative; }
.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0,0,0,0.75);
  color: #fff;
  letter-spacing: 0.04em;
}
.product-main-image .status-badge {
  top: 0;
  left: 0;
  border-radius: 0;
  padding: 6px 12px;
}
.product-thumb .status-badge {
  top: -1px;
  left: -1px;
  border-radius: 0;
  padding: 6px 12px;
}
.status-badge--instock { background: rgba(21,128,61,0.95); }
.status-badge--preorder { background: rgba(180,83,9,0.95); }
.status-badge--showcase { background: rgba(49,46,129,0.95); }
.status-badge--soon { background: rgba(79,70,229,0.95); }
.status-badge--used { background: rgba(190,24,93,0.95); }

.product-state-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.product-state-row .status-badge {
  position: static;
  display: inline-flex;
}
.product-state-text,
.product-stock-text,
.product-availability-note,
.product-preorder-note {
  font-size: 14px;
  color: #4b5563;
}
.product-availability-note,
.product-preorder-note {
  margin-top: 4px;
}

.product-body { padding: 12px 8px 14px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; flex: 1; }
.product-title { font-size: 22px; font-weight: 600; color: #111827; line-height: 1.2; max-width: 92%; padding: 0 8px; margin: 0 auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 48px; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; padding: 0 8px; justify-content: center; }
.price-from { color: #6b7280; font-weight: 600; }
.product-price { font-size: 20px; font-weight: 800; color: #6b7280; }
.price-discount { font-size: 12px; color: #b91c1c; font-weight: 600; }

.catalog-toolbar { display: flex; justify-content: flex-end; gap: 16px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.catalog-filter { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #4b5563; }
.catalog-filter select { padding: 6px 12px; border-radius: 10px; border: 1px solid #d1d5db; background: #fff; font-weight: 600; color: #111827; }
.catalog-filter-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; width: 100%; justify-content: center; }
.catalog-toolbar { display: flex; justify-content: center; }
.catalog-filter-group .catalog-filter { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #111827; }
.catalog-filter-clear { border: 1px solid #d1d5db; background: #fff; color: #111827; border-radius: 10px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.catalog-filter-clear:hover { filter: brightness(0.98); }
@media (max-width: 768px) { .catalog-filter-group { flex-direction: column; align-items: stretch; } .catalog-filter-group .catalog-filter { justify-content: space-between; } }
.catalog-filter-label { font-weight: 700; color: #111827; }
.filter-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { border: 1px solid #d8dbe7; background: #fff; color: #111827; border-radius: 28px; padding: 16px 28px; font-weight: 300; font-size: 16px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.filter-chip:hover { border-color: #bfc6d9; }
.filter-chip.is-active { background: #fff; border-color: #2d5a3d; color: #2d5a3d; }
@media (max-width: 768px) { .filter-chip-row { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; } .filter-chip { white-space: nowrap; } }
.catalog-filter select:focus { outline: 2px solid #2563eb; border-color: #2563eb; }

.product-meta { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.product-meta--inline { justify-content: flex-start; }
.stock-pill { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #F3F4F6; color: #1F2937; }
.empty-products { text-align: center; padding: 32px 0; font-weight: 600; color: #6b7280; }

.add-btn.preorder { background: #92400e; border-color: #92400e; }
.add-btn.preorder:hover { filter: brightness(1.05); }
.add-btn[disabled], .add-btn.disabled { background: #e5e7eb; border-color: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.add-btn-large.preorder { background: #92400e; border-color: #92400e; }
.add-btn-large[aria-disabled="true"], .add-btn-large.disabled, .add-btn-large.is-disabled { background: #e5e7eb; border-color: #e5e7eb; color: #9ca3af; cursor: not-allowed; pointer-events: none; }

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { font-size: 22px; margin: 16px 0; }
  .product-card { border-radius: 0; padding: 10px; }
  .product-title { font-size: 15px; }
  .product-price { font-size: 18px; }
}

@media (max-width: 768px) {
  .product-title,
  body[data-category] .product-title {
    font-size: 14px;
    line-height: 1.25;
    -webkit-line-clamp: 3;
    min-height: 54px;
  }
}

/* Адаптив: мобильный вид */
@media (max-width: 768px) {
  .top-bar .nav-links, .top-bar .cities-question { display: none; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* 20% / 80% через flex + gap, без переполнения */
  .header-main-content { display: flex; align-items: center; gap: 6px; }
  .logo { flex: 0 0 40%; min-width: 0; }
  .logo-img { height: auto; max-height: 45px; max-width: 100%; }
  .search { flex: 1 1 60%; margin-left: 0; min-width: 0; }
  .search-wrap { width: 100%; min-width: 0; }
  .search-input { width: 100%; padding: 12px 44px 12px 16px; font-size: 16px; }

  .category-icons-grid { gap: 12px; }
  .category-label { font-size: clamp(12px, 3.8vw, 16px); }
  .category-icon { background-size: 60% auto; }

  .brands { padding: 16px 0; }
  .brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .brand-logo { height: 28px; }
}

/* Запас под плавающую кнопку корзины на мобильных */
@media (max-width: 768px) {
  body { padding-bottom: 84px; }
}

/* Категорийные страницы: более компактные карточки и свободнее сетка */
body[data-category] .products { padding: 8px 0 32px; background: transparent; }
body[data-category] .products-grid { gap: 0; grid-template-columns: repeat(4, 250px); justify-content: center; }
@media (min-width: 1025px) { body[data-category] .products-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1360px) { body[data-category] .products-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
body[data-category] .product-card { padding: 0; border-radius: 0; width: 100%; }
body[data-category] .product-thumb { height: auto; min-height: clamp(53px, 6.4vw, 83px); aspect-ratio: 3/4; }
body[data-category] .product-body { padding: 4px 0 8px; }
body[data-category] .product-title { font-size: 22px; font-weight: 600; color: #111827; line-height: 1.2; max-width: 92%; padding: 0 8px; margin: 0 auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 48px; }
body[data-category] .product-price { font-size: 20px; }
body[data-category] .price-from { font-size: 12px; }
body[data-category] .add-btn { padding: 8px; font-size: 13px; border-radius: 8px; }

/* Категории — адаптив колонок при меньшей ширине */
@media (max-width: 1200px) {
  body[data-category] .products-grid { grid-template-columns: repeat(3, 250px); }
}
@media (max-width: 900px) {
  body[data-category] .products-grid { grid-template-columns: repeat(2, 250px); }
}

/* Мобильная адаптация для всех страниц категорий товаров */
@media (max-width: 768px) {
  /* Сетка — две эластичные колонки, без горизонтального скролла */
  body[data-category] .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  /* Карточка растягивается по колонке, без фиксированной ширины */
  body[data-category] .product-card {
    width: auto;
    padding: 8px;
    border-radius: 0;
  }
  /* Превью масштабируется пропорционально экрану */
  body[data-category] .product-thumb {
    height: auto;
    min-height: 0;
    aspect-ratio: 3/4;
  }
  body[data-category] .product-title { font-size: 14px; min-height: 50px; }
  body[data-category] .product-price { font-size: 18px; }
  body[data-category] .add-btn { padding: 10px; font-size: 14px; }
}

/* Очень узкие экраны — одна колонка */
@media (max-width: 420px) {
  body[data-category] .products-grid { grid-template-columns: 1fr; }
}

/* Альтернативные категории 2×2 */
.category-tiles { background: #fff; padding: 12px 0 24px; }
.category-tiles-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); }
.category-tile { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; padding: 24px 16px; position: relative; background: #fff; }
.category-tile { border-right: 1px solid #eef0f4; }
.category-tile:nth-child(6n) { border-right: none; }
.category-tile-thumb { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; }
.category-tile-thumb img { max-width: 80%; max-height: 140px; width: auto; height: auto; object-fit: contain; display: block; }
.category-tile-title { margin-top: 12px; font-weight: 800; font-size: 20px; text-align: center; }
.category-tile-label { margin-top: 12px; font-weight: 800; font-size: 20px; text-align: center; }

/* Skeleton loader для категорий */
.category-tiles-grid:empty::before {
  content: "Загрузка категорий...";
  display: block;
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
}
@media (max-width: 1024px) { .category-tile-thumb { height: 140px; } .category-tile-thumb img { max-height: 120px; } }
@media (max-width: 768px)  { 
  .category-tiles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-tile { padding: 20px 12px; border-right: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4; } 
  .category-tile:nth-child(2n) { border-right: none; }
  .category-tile-title { font-size: 18px; }
  .category-tile-label { font-size: 18px; } 
  .category-tile-thumb { height: 120px; } 
  .category-tile-thumb img { max-height: 100px; } 
}

/* Десктоп: 6 карточек в ряд */
@media (min-width: 1025px) {
  .category-tiles-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .category-tile { border-bottom: none !important; border-right: 1px solid #eef0f4; }
  .category-tile:nth-child(6n) { border-right: none; }
}

/* Информационные секции */
.info-section {
  padding: 80px 0;
  background: white;
}

.info-section-alt {
  background: #f9fafb;
}

/* Hero блок "О компании" */
.about-hero {
  background: #f5f5f7;
  padding: 40px 0;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.about-hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-hero-text {
  text-align: center;
  max-width: 600px;
}

.about-hero-label {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.about-hero-years {
  font-size: 96px;
  font-weight: 900;
  color: #2d5a3d;
  line-height: 1;
  margin: 0;
  letter-spacing: -3px;
}

.about-hero-description {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
}

.about-hero-description p {
  margin-bottom: 20px;
}

.about-hero-description strong {
  color: #2d5a3d;
  font-weight: 700;
}

.info-section .section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 40px;
}

.info-content {
  max-width: 800px;
  margin: 0 auto;
}

.info-text-large {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
}

.info-text-large p {
  margin-bottom: 20px;
}

.info-text-large strong {
  color: #2d5a3d;
  font-weight: 700;
}

/* Сетка карточек */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.info-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.info-section-alt .info-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

.info-card a {
  color: #2d5a3d;
  text-decoration: none;
  font-weight: 600;
}

.info-card a:hover {
  text-decoration: underline;
}

/* Карточки локаций */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.location-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.location-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: #2d5a3d;
  margin-bottom: 16px;
}

.location-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  margin: 0 0 12px 0;
}

.location-hours {
  font-weight: 600;
  color: #6b7280;
  margin-top: 12px !important;
}

/* Адаптивность */
@media (min-width: 1025px) {
  .info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .info-section {
    padding: 60px 0;
  }
  
  .info-section .section-title {
    font-size: 32px;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .info-section {
    padding: 40px 0;
  }
  
  .info-section .section-title {
    font-size: 28px;
    margin-bottom: 24px;
  }
  
  .info-text-large {
    font-size: 16px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .info-card {
    padding: 24px;
  }
  
  .location-card {
    padding: 24px;
  }
  
  /* Hero блок адаптив */
  .about-hero {
    padding: 30px 0;
    min-height: auto;
  }
  
  .about-hero-content {
    padding: 0 20px;
  }
  
  .about-hero-label {
    font-size: 32px;
    margin-bottom: 12px;
  }
  
  .about-hero-years {
    font-size: 56px;
    letter-spacing: -2px;
  }
  
  .about-hero-description {
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  /* Отступ между логотипом и поиском на десктопе */
  .header-main-content { gap: 20px; }
}

/* Фоны для карточек категорий (переведены на storage, либо используем <img>) */
.category-icon-item.iphone .category-icon { background-image: url('/storage/image/Категории/iphone.png'); }
.category-icon-item.mac .category-icon { background-image: url('/image/mba13-m4-skyblue-gallery1-202503.png'); }
.category-icon-item.watch .category-icon { background-image: url('/image/watch.png'); }
.category-icon-item.airpods .category-icon { background-image: url('/image/airpods.png'); }

@media (max-width: 768px) {
  .category-icon-item.iphone .category-icon,
  .category-icon-item.mac .category-icon { background-size: 70% auto; }
}

/* Индивидуальная подстройка размера для AirPods */
.category-icon-item.airpods .category-icon { background-size: 60% auto; }
@media (max-width: 768px) {
  .category-icon-item.airpods .category-icon { background-size: 50% auto; }
}

@media (max-width: 768px) {
  .hero-copy { max-width: 90%; padding: 24px 0; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .hero-btn { padding: 10px 16px; border-radius: 6px; }
  /* Новые правила для позиционирования */
  .hero-inner { align-items: flex-start; }
  .hero-copy { margin: 0 auto; text-align: center; padding-top: 16px; }
}

/* Категории справа от поиска (десктоп/планшет) */
.categories { display: none; gap: 10px; margin-left: 20px; white-space: nowrap; }
.category-btn { color: #000; text-decoration: none; font-weight: 500; font-size: 14px; }
.category-btn.iphone { color: #2d5a3d; }
.category-btn:hover { text-decoration: underline; }
.header-cart { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 7px; border-radius: 0; background: transparent; text-decoration: none; flex: 0 0 auto; padding: 0; line-height: 0; font-size: 0; position: relative; }
.header-cart svg { display: block; width: 22px; height: 22px; }
.header-cart-badge { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; display: none; }
.header-cart:hover { filter: brightness(0.95); }

@media (min-width: 769px) {
  .categories { display: flex; }
}

@media (max-width: 768px) {
  .header-cart { width: 40px; height: 40px; margin-left: 4px; }
}

/* Социальные сети / подписки */
.social-follow { background: #fff; padding: 40px 0 56px; }
.social-head { display: flex; align-items: center; }
.social-title { font-size: 28px; font-weight: 700; color: #111827; }

.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.social-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 12px; border-radius: 12px; transition: background .2s ease; }
.social-item:hover { background: #f9fafb; }
.social-icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; }
.social-text { display: flex; flex-direction: column; }
.social-name { font-size: 14px; color: #6b7280; }
.social-handle { font-size: 18px; font-weight: 700; color: #4b5563; }

@media (max-width: 1024px) {
  .social-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .social-title { font-size: 22px; }
  .social-grid { grid-template-columns: 1fr; }
}

/* Карта и контакты */
.map-section { background: #fff; padding: 40px 0 56px; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.map-embed { border-radius: 16px; overflow: hidden; border: 1px solid #e5e7eb; background: #f9fafb; }
.map-embed iframe { display: block; border: 0; width: 100%; height: 360px; }
.map-card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; background: #fafafa; display: grid; gap: 16px; align-content: start; }
.map-card-title { font-size: 14px; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.map-card-text { font-size: 18px; font-weight: 700; color: #111827; }
.map-card-link { font-size: 18px; font-weight: 700; color: #2d5a3d; text-decoration: none; }
.map-card-link:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-embed iframe { height: 320px; }
}
@media (max-width: 600px) {
  .map-embed iframe { height: 260px; }
}

/* FAB корзины */
.cart-fab { position: fixed; right: 16px; bottom: 16px; z-index: 1000; background: #2d5a3d; color: #fff; border: none; border-radius: 999px; padding: 12px 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.cart-fab-icon img { width: 20px; height: 20px; display: block; }
.cart-fab-count { background: #fff; color: #111827; border-radius: 999px; padding: 2px 8px; font-weight: 700; font-size: 12px; }
.cart-fab:hover { filter: brightness(1.05); }

/* Модальное окно добавления */
.cart-modal { position: fixed; inset: 0; display: none; z-index: 1200; }
.cart-modal.open { display: block; }
.cart-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.cart-modal-dialog { position: relative; margin: 10vh auto 0; width: min(760px, 92%); background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.2); padding: 16px; }
.cart-modal-close { position: absolute; top: 8px; right: 12px; background: transparent; border: none; font-size: 24px; color: #6b7280; cursor: pointer; }
.cart-modal-header { font-weight: 800; font-size: 20px; color: #111827; margin-bottom: 12px; }
.cart-modal-body { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.cart-modal-thumb { width: 120px; height: 140px; background: #f3f4f6; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-modal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-modal-title { font-weight: 700; margin-bottom: 6px; }
.cart-modal-price { font-weight: 800; }
.cart-modal-actions { margin-top: 16px; display: grid; grid-auto-flow: column; gap: 12px; justify-content: start; }
.cart-modal-primary { display: inline-block; background: #2d5a3d; color: #fff; text-decoration: none; border-radius: 10px; padding: 12px 18px; font-weight: 700; }
.cart-modal-secondary { background: #f3f4f6; color: #111827; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer; }

@media (max-width: 600px) {
  .cart-modal-body { grid-template-columns: 80px 1fr; }
  .cart-modal-thumb { width: 80px; height: 96px; }
  .cart-modal-info { min-width: 0; }
  .cart-modal-title { overflow-wrap: anywhere; word-break: break-word; }
}

/* Модалка обратного звонка */
.cb-modal { position: fixed; inset: 0; display: none; z-index: 1300; }
.cb-modal.open { display: block; }
.cb-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.cb-dialog { position: relative; margin: 14vh auto 0; width: min(460px, 92%); background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 18px; }
.cb-close { position: absolute; top: 8px; right: 12px; background: transparent; border: none; font-size: 24px; color: #6b7280; cursor: pointer; }
.cb-title { font-size: 20px; font-weight: 800; color: #111827; margin-bottom: 6px; }
.cb-sub { color: #4b5563; margin-bottom: 12px; }
.cb-form { display: grid; gap: 10px; }
.cb-input { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; }
.cb-actions { display: grid; grid-auto-flow: column; gap: 12px; justify-content: start; margin-top: 6px; }
.cb-send { background: #2d5a3d; color: #fff; border: 1px solid #2d5a3d; border-radius: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.cb-cancel { background: #f3f4f6; color: #111827; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.cb-hint { font-size: 12px; color: #6b7280; }
.cb-success { color: #10b981; font-weight: 700; display: none; }
.cb-success.show { display: block; }

/* Order page */
.order-title { font-size: 32px; font-weight: 800; margin: 24px 0; color: #111827; }
.order-toolbar { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.order-selectall { display: inline-flex; align-items: center; gap: 8px; color: #4b5563; font-weight: 600; }
.order-clear { background: #f3f4f6; color: #111827; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.order-grid { display: grid; grid-template-columns: 1.6fr 0.8fr; gap: 24px; }
.order-list { display: grid; gap: 12px; }
.order-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; }
.order-item-thumb { width: 96px; height: 120px; background: #f3f4f6; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.order-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-item-title { font-weight: 700; margin-bottom: 6px; }
.order-item-meta { color: #6b7280; font-size: 14px; }
.order-item-actions { display: flex; align-items: center; gap: 8px; }
.order-check-input { width: 16px; height: 16px; }
.order-qty { display: inline-grid; grid-auto-flow: column; gap: 8px; align-items: center; }
.order-btn { width: 28px; height: 28px; border-radius: 6px; background: #f3f4f6; border: 1px solid #e5e7eb; cursor: pointer; }
.order-remove { background: transparent; border: none; color: #b91c1c; cursor: pointer; }
.order-price { font-weight: 800; }

.order-summary .order-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; display: grid; gap: 12px; position: sticky; top: 24px; }
.order-row { display: flex; justify-content: space-between; }
.order-checkout { 
    width: 100%; 
    background: #2d5a3d; 
    color: #fff; 
    border: none; 
    border-radius: 10px; 
    padding: 14px 20px; 
    font-weight: 700; 
    cursor: pointer; 
    font-size: 16px;
}
.order-continue { text-align: center; color: #6b7280; text-decoration: none; font-weight: 600; }

.order-empty { padding: 24px; color: #6b7280; }
.hidden { display: none; }

@media (max-width: 1024px) { .order-grid { grid-template-columns: 1fr; } .order-summary .order-box { position: static; } }

/* Двойной промо-блок */
.promo-duo { background: #fff; padding: 32px 0 40px; }
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.promo-card { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; position: relative; overflow: hidden; }
.promo-head { text-align: center; color: #6b7280; font-weight: 700; margin-bottom: 8px; }
.promo-title { text-align: center; font-size: 36px; font-weight: 800; color: #111827; margin-bottom: 12px; }
.promo-btn { display: block; width: fit-content; margin: 0 auto 12px; background: #2d5a3d; color: #fff; text-decoration: none; border-radius: 8px; padding: 10px 16px; font-weight: 700; border: 1px solid #2d5a3d; }
.promo-btn:hover { filter: brightness(1.05); }
.promo-thumb { display: flex; justify-content: center; align-items: flex-end; min-height: 240px; }
.promo-thumb img { width: 100%; height: auto; max-height: 280px; object-fit: contain; }

@media (max-width: 1024px) { .promo-grid { grid-template-columns: 1fr; } .promo-title { font-size: 28px; } .promo-thumb { min-height: 200px; } .promo-thumb img { max-height: 220px; } }

/* Специальные стили для блока "Как нас найти" */
#location .promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
@media (max-width: 1024px) { #location .promo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 768px) { #location .promo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; } #location .promo-card { padding: 16px; } #location .promo-title { font-size: 24px; } }

/* Trade‑In */
.tradein { background: #fff; padding: 24px 0 40px; }
.tradein-card { background: #f6f7fb; border: 1px solid #eef0f4; border-radius: 16px; padding: 28px 28px 0 28px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; gap: 16px; }
.tradein-copy { display: flex; flex-direction: column; justify-content: center; }
.tradein-title { font-size: 40px; font-weight: 800; color: #111827; margin-bottom: 8px; }
.tradein-sub { font-size: 18px; color: #4b5563; margin-bottom: 20px; }
.tradein-btn { display: inline-block; background: #2d5a3d; color: #fff; text-decoration: none; border-radius: 8px; padding: 10px 16px; font-weight: 700; align-self: flex-start; width: fit-content; }
.tradein-btn:hover { filter: brightness(1.05); }
.tradein-thumb { display: flex; justify-content: flex-end; align-items: flex-end; align-self: stretch; height: 100%; }
.tradein-thumb img { width: 100%; max-width: 560px; height: auto; object-fit: contain; display: block; }
@media (max-width: 1024px) { .tradein-card { grid-template-columns: 1fr; text-align: center; } .tradein-btn { align-self: center; margin-left: auto; margin-right: auto; } .tradein-thumb { justify-content: center; align-items: flex-end; } .tradein-title { font-size: 28px; } .tradein-thumb img { max-height: 260px; max-width: 100%; } }

/* Полезные статьи */
.articles { background: #fff; padding: 32px 0 40px; }
.articles-head { display: flex; align-items: center; justify-content: space-between; }
.articles-title { font-size: 28px; font-weight: 800; color: #111827; }
.articles-more { color: #6b7280; text-decoration: none; font-weight: 600; }
.articles-more:hover { text-decoration: underline; }
.articles-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.article-card { background: #f7f7fb; border: 1px solid #eef0f4; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.article-badge { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.article-title { font-size: 20px; line-height: 1.35; color: #111827; font-weight: 800; }
.article-read { color: #111827; text-decoration: none; font-weight: 700; }
.article-read:hover { text-decoration: underline; }
.article-thumb { margin-top: 8px; background: #fff; border-radius: 12px; overflow: hidden; }
.article-thumb img { width: 100%; height: 220px; object-fit: cover; display: block; }
@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 768px)  { .articles-title { font-size: 22px; } .articles-grid { grid-template-columns: 1fr; } .article-thumb img { height: 180px; } }

/* Отзывы */
.reviews { background: #fff; padding: 32px 0 40px; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reviews-title { font-size: 28px; font-weight: 800; color: #111827; margin: 0; }
.reviews-subtitle { color: #6b7280; font-size: 14px; margin-top: 6px; }
.reviews-link { color: #2d5a3d; text-decoration: none; font-weight: 700; border: 1px solid #e5e7eb; padding: 8px 14px; border-radius: 10px; background: #f9fafb; }
.reviews-link:hover { filter: brightness(0.98); }
.reviews-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.review-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 18px; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04); }
.review-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-name { font-size: 16px; font-weight: 700; color: #111827; }
.review-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }
.review-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; white-space: nowrap; }
.review-text { margin-top: 12px; color: #374151; font-size: 14px; line-height: 1.6; }
@media (max-width: 1024px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 768px)  { .reviews-title { font-size: 22px; } .reviews-grid { grid-template-columns: 1fr; } }

/* Страница отдельной статьи */
.article-page {
    padding: 40px 0;
    background: #fff;
}

.article-full {
    max-width: 800px;
    margin: 0 auto;
}

.article-full .article-badge {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
}

.article-full .article-title {
    font-size: 36px;
    line-height: 1.2;
    color: #111827;
    font-weight: 800;
    margin-bottom: 16px;
}

.article-meta {
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 14px;
}

.article-image {
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 32px 0 16px 0;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 24px 0 12px 0;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    font-weight: 600;
    color: #111827;
}

.article-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.btn-back {
    color: #2d5a3d;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.btn-back:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .article-full .article-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 15px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
}

/* Страница товара */
.breadcrumbs {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
    display: block;
}

.breadcrumbs-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-item:hover {
    color: #2d5a3d;
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #6c757d;
    font-size: 14px;
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.product-gallery {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
}

.product-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}

.indicator.active {
    background: #2d5a3d;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Product badges */
.product-badges {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.product-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.product-page .product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: #2d5a3d;
}

.product-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.color-options::-webkit-scrollbar {
    height: 4px;
}

.color-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.color-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: all 0.2s ease;
    min-width: 100px;
    max-width: 120px;
    flex-shrink: 0;
}

.color-option:hover {
    background: #f8f9fa;
}

.color-option.active {
    background: #f8f9fa;
    border: 2px solid #2d5a3d;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: border-color 0.2s;
}

.color-option.active .color-circle {
    border-color: #2d5a3d;
}

.color-option-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
}

.color-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}

.color-sim-text {
    font-size: 11px;
    color: #999;
    text-align: center;
}

.memory-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.memory-option {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 80px;
    text-align: center;
    font-size: 14px;
}

.memory-option:hover {
    border-color: #2d5a3d;
    background: #f8f9fa;
}

.memory-option.active {
    border-color: #2d5a3d;
    background: #2d5a3d;
    color: white;
}

.product-actions {
    margin-top: 16px;
}

/* Product price section */
.product-price-section {
    margin: 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.product-price-main {
    font-size: 40px;
    font-weight: 800;
    color: #047857;
    margin-bottom: 8px;
}

.product-price-installment,
.product-price-tradein {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    background: #f0fdf4;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.product-price-states {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-price-state-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.product-price-state-card:hover {
    border-color: #d1d5db;
    background: #fff;
}

.product-price-state-card.active {
    border-color: #10b981;
    background: #ecfdf5;
}

.product-price-state-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-price-state-card .state-card-info {
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}

.product-price-state-card .state-price {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}

.product-price-bonus {
    color: #10b981;
    font-weight: 500;
}

/* Large add to cart button */
.add-btn-large {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn-large:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.product-actions .add-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
}

/* Product description collapsible */
.product-description {
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.product-description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.product-description-content {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    margin-top: 12px;
    overflow: visible;
    position: relative;
}

.product-description-content p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}


.product-details-grid {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 40px;
    margin-top: 40px;
}

.recommended-products {
    margin-top: 40px;
}

.recommended-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.recommended-swiper {
    padding: 4px 4px 28px;
}

.recommended-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.recommended-swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
}

.recommended-swiper .swiper-button-next,
.recommended-swiper .swiper-button-prev {
    color: var(--brand-green, #16a34a);
}

.recommended-swiper .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
}

.recommended-swiper .swiper-pagination-bullet-active {
    background: var(--brand-green, #16a34a);
}

.recommended-products .product-card {
    border: 0;
    box-shadow: none;
}

/* Product specs */
.product-specs {
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: var(--specs-max-height, 220px);
    overflow: hidden;
    position: relative;
}

.spec-list.is-expanded {
    max-height: none;
}

.spec-list.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 100%);
}

.specs-toggle {
    margin-top: 12px;
    background: transparent;
    border: 1px solid #2d5a3d;
    color: #2d5a3d;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 500;
    cursor: pointer;
}

.specs-toggle:hover {
    filter: brightness(0.98);
}

.product-description-content {
    max-height: var(--specs-max-height, 220px);
    overflow: hidden;
    position: relative;
}

.product-description-content.is-expanded {
    max-height: none;
}

.product-description-content.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 100%);
}

.description-toggle {
    margin-top: 12px;
    background: transparent;
    border: 1px solid #2d5a3d;
    color: #2d5a3d;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 500;
    cursor: pointer;
}

.description-toggle:hover {
    filter: brightness(0.98);
}

.spec-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.spec-row:last-child {
    border-bottom: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px 0;
        max-width: 100%;
    }
    
    .product-gallery {
        padding: 0;
        margin-bottom: 16px;
    }

    .spec-row {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }
    
    .product-page .product-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .product-badges {
        margin: 12px 0 20px;
        gap: 8px;
    }
    
    .product-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .product-option {
        margin-bottom: 20px;
    }
    
    .option-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .color-options {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .color-option {
        padding: 6px;
        min-width: 90px;
        max-width: 100px;
    }
    
    .color-option-image {
        width: 50px;
        height: 50px;
    }
    
    .color-circle {
        width: 28px;
        height: 28px;
    }
    
    .memory-options {
        gap: 6px;
        justify-content: flex-start;
    }
    
    .memory-option {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 70px;
    }
    
    .product-price-main {
        font-size: 28px;
        color: #047857;
    }
    
    .product-price-installment,
    .product-price-tradein {
        font-size: 13px;
    }
    
    .add-btn-large {
        padding: 16px 20px;
        font-size: 16px;
        margin-top: 16px;
    }
    
    .product-specs,
    .product-description {
        margin-top: 24px;
    }
    
    .breadcrumbs-nav {
        font-size: 12px;
    }
}

/* Article page styles */
.article-page { padding: 40px 0; }
.article-content { max-width: 900px; margin: 0 auto; }
.article-badge-lg { display: inline-block; background: #10b981; color: #fff; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.article-title-main { font-size: 36px; font-weight: 700; color: #111827; margin-bottom: 12px; line-height: 1.2; }
.article-meta { margin-bottom: 24px; color: #6b7280; font-size: 14px; }
.article-date { font-weight: 500; }
.article-image-main { margin-bottom: 32px; border-radius: 12px; overflow: hidden; }
.article-image-main img { width: 100%; height: auto; display: block; }
.article-body { font-size: 16px; line-height: 1.8; color: #374151; margin-bottom: 40px; }
.article-body h2 { font-size: 28px; font-weight: 700; margin: 32px 0 16px; color: #111827; }
.article-body h3 { font-size: 22px; font-weight: 600; margin: 24px 0 12px; color: #111827; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.article-body a { color: #10b981; text-decoration: underline; }
.article-body a:hover { color: #059669; }
.article-footer { padding-top: 24px; border-top: 1px solid #e5e7eb; }
.btn-back { display: inline-block; padding: 12px 24px; background: #f3f4f6; color: #374151; border-radius: 8px; text-decoration: none; font-weight: 500; transition: background 0.2s; }
.btn-back:hover { background: #e5e7eb; }
.page-title { font-size: 32px; font-weight: 700; color: #111827; margin-bottom: 32px; }

@media (max-width: 768px) {
    .article-title-main { font-size: 28px; }
    .article-body { font-size: 15px; }
    .article-body h2 { font-size: 24px; }
    .article-body h3 { font-size: 20px; }
}

/* Уведомление об автоопределении города */
.city-auto-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10000;
  animation: slideUp 0.3s ease;
  max-width: 90%;
  font-size: 14px;
}

.city-auto-notification .change-city {
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
}

.city-auto-notification .change-city:hover {
  text-decoration: underline;
}

.city-auto-notification button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-auto-notification button:hover {
  color: #333;
}

@keyframes slideUp {
  from { 
    transform: translateX(-50%) translateY(100px); 
    opacity: 0; 
  }
  to { 
    transform: translateX(-50%) translateY(0); 
    opacity: 1; 
  }
}

@media (max-width: 768px) {
  .city-auto-notification {
    bottom: 10px;
    padding: 12px 16px;
    font-size: 13px;
  }
}
.section-heading,
.product-specs .option-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172a;
}
