/* ============================================================
   ШРИФТЫ
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ============================================================
   CSS-ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  --bg:       #0A0A0A;
  --surface:  #141414;
  --card:     #1C1C1C;
  --border:   #2A2A2A;
  --text:     #FFFFFF;
  --secondary:#A0A0A0;
  --accent:   #FF5722;
  --accent-h: #FF7043;
  --success:  #00C853;
  --warning:  #FFA000;
  --danger:   #D32F2F;
}

/* ============================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Шумовая текстура поверх фона */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 { font-family: 'Manrope', 'Inter', sans-serif; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   СКРОЛЛБАР
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,87,34,0.3); }
  50%       { box-shadow: 0 0 25px rgba(255,87,34,0.7); }
}

/* Reveal при скролле */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#main-header.header-scrolled {
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-link {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #C84B19; /* WCAG AA: 4.69:1 with white */
  color: #fff;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #E05520;
  box-shadow: 0 0 20px rgba(255,87,34,0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(255,87,34,0.05); }

/* ============================================================
   SECTION ЗАГОЛОВКИ
   ============================================================ */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.section-sub-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

/* ============================================================
   КАРТОЧКИ ОТГРУЗОК
   ============================================================ */
.shipments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .shipments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .shipments-grid { grid-template-columns: 1fr; } }

.shipment-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.shipment-card:hover {
  border-color: rgba(255,87,34,0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

.card-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #111; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shipment-card:hover .card-img { transform: scale(1.04); }
.card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.status-badge {
  position: absolute; top: 10px; right: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.status-delivered { background: rgba(0,200,83,0.15); color: var(--success); border: 1px solid rgba(0,200,83,0.3); }
.status-transit   { background: rgba(255,160,0,0.15); color: var(--warning); border: 1px solid rgba(255,160,0,0.3); }
.status-loading   { background: rgba(33,150,243,0.15); color: #42A5F5;       border: 1px solid rgba(33,150,243,0.3); }

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--warning);
  animation: pulseDot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.card-body { padding: 1rem; }
.card-model { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); }
.card-price { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.95rem; color: var(--accent); white-space: nowrap; }
.card-route { font-size: 0.85rem; color: var(--secondary); margin: 0.4rem 0; }
.card-route strong { color: var(--text); }
.card-meta  { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.75rem; color: var(--secondary); margin: 0.4rem 0 0.6rem; }
.card-stars { color: #FFB300; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 0.6rem; }
.card-btn {
  display: block; text-align: center;
  background: rgba(255,87,34,0.08);
  color: var(--accent);
  border: 1px solid rgba(255,87,34,0.25);
  border-radius: 5px;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.card-btn:hover { background: rgba(255,87,34,0.18); border-color: var(--accent); }

/* ============================================================
   SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, #232323 50%, var(--card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
.skeleton-img  { aspect-ratio: 16/10; }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-btn  { height: 36px; border-radius: 5px; margin-top: 8px; }
.w-3\/4 { width: 75%; }
.w-1\/2 { width: 50%; }
.w-full  { width: 100%; }

/* ============================================================
   ФИЛЬТРЫ ЛЕНТЫ
   ============================================================ */
.feed-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-active { background: #C84B19; border-color: #C84B19; color: #fff !important; } /* WCAG AA 4.69:1 */

.filter-select {
  padding: 0.4rem 0.75rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--secondary);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--accent); }

/* ============================================================
   LIVE ПАНЕЛЬ
   ============================================================ */
.live-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 768px) { .live-panel { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .live-panel { grid-template-columns: 1fr; } }

.live-item {
  background: var(--surface);
  padding: 1.5rem;
  text-align: center;
}
.live-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}
.live-label { font-size: 0.8rem; color: var(--secondary); }

/* ============================================================
   КАРТА
   ============================================================ */
#shipments-map {
  height: 400px;
  border-radius: 8px;
  border: 1px solid var(--border);
  z-index: 1;
}
.leaflet-popup-content-wrapper {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
}
.leaflet-popup-tip { background: var(--card) !important; }
.leaflet-popup-content { margin: 10px 14px !important; }

/* ============================================================
   КАК МЫ РАБОТАЕМ
   ============================================================ */
.timeline {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.timeline-step {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}
.timeline-step::after {
  content: '';
  position: absolute;
  top: 20px; left: calc(50% + 20px); right: -50%;
  height: 2px;
  background: var(--border);
}
.timeline-step:last-child::after { display: none; }

.timeline-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  position: relative; z-index: 1;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.timeline-title { font-weight: 700; color: var(--text); margin-bottom: 0.35rem; font-size: 0.95rem; }
.timeline-desc  { font-size: 0.8rem; color: var(--secondary); line-height: 1.4; }

@media (max-width: 768px) {
  .timeline { flex-direction: column; }
  .timeline-step::after { left: 20px; top: 40px; bottom: -40%; right: auto; width: 2px; height: auto; }
  .timeline-step { flex-direction: row; text-align: left; gap: 1rem; align-items: flex-start; }
}

/* ============================================================
   ГАРАНТИИ
   ============================================================ */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .guarantees-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .guarantees-grid { grid-template-columns: 1fr; } }

.guarantee-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}
.guarantee-card:hover { border-color: rgba(255,87,34,0.3); }
.guarantee-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.guarantee-title { font-weight: 700; margin-bottom: 0.4rem; }
.guarantee-desc { font-size: 0.85rem; color: var(--secondary); }

/* Раскрывающийся блок реквизитов */
.requisites-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.requisites-toggle:hover { border-color: var(--accent); color: var(--text); }
.requisites-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--secondary);
  line-height: 2;
}

/* ============================================================
   КАРУСЕЛЬ ОТЗЫВОВ
   ============================================================ */
.reviews-carousel-wrap { position: relative; }
.reviews-carousel {
  display: flex;
  gap: 1rem;
  overflow: hidden;
}
.reviews-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.review-card:hover { border-color: rgba(255,87,34,0.3); }
.review-card-stars { color: #FFB300; font-size: 1rem; margin-bottom: 0.5rem; }
.review-card-text  { font-size: 0.85rem; color: var(--secondary); margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review-card-author{ font-size: 0.8rem; color: var(--text); font-weight: 600; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-btn-prev { left: -20px; }
.carousel-btn-next { right: -20px; }

/* ============================================================
   FAQ АККОРДЕОН
   ============================================================ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.faq-question {
  width: 100%;
  background: var(--card);
  border: none;
  padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-question:hover { background: #222; }
.faq-icon { color: var(--accent); font-size: 1.25rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  background: var(--surface);
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 1rem 1.25rem; }

/* ============================================================
   КАЛЬКУЛЯТОР
   ============================================================ */
.model-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
@media (max-width: 480px) {
  .model-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}
.model-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.model-card:hover   { border-color: rgba(255,87,34,0.4); }
.model-selected     { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(255,87,34,0.2); }
.model-card-img-wrap{ aspect-ratio: 4/3; overflow: hidden; background: #111; }
.model-card-img     { width: 100%; height: 100%; object-fit: cover; }
.model-card-body    { padding: 0.75rem; }
.model-card-name    { font-weight: 700; font-size: 0.85rem; color: var(--text); margin-bottom: 0.2rem; }
.model-card-cc      { font-size: 0.75rem; color: var(--secondary); }
.model-card-price   { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 0.85rem; font-weight: 600; margin: 0.3rem 0; }
.model-card-desc    { font-size: 0.75rem; color: var(--secondary); line-height: 1.4; display: none; }
.model-selected .model-card-desc { display: block; }
.model-card-more    { display: none; font-size: 0.72rem; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: 0.4rem; transition: opacity .2s; }
.model-card-more:hover { opacity: .75; }
.model-selected .model-card-more { display: inline-block; }

.city-autocomplete-wrap { position: relative; }
.city-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.city-input:focus { border-color: var(--accent); }
.city-input::placeholder { color: var(--secondary); }

.city-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 4px;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.city-option {
  padding: 0.65rem 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s;
}
.city-option:hover { background: rgba(255,87,34,0.1); }

/* На десктопе результат — в правой колонке, мобильный блок скрыт */
@media (min-width: 1024px) {
  .calc-result-mobile-wrap { display: none !important; }
}
/* На мобильном результат — под городом, десктопный блок скрыт */
@media (max-width: 1023px) {
  #calc-result { display: none !important; }
  .calc-result-mobile-wrap { margin-top: 1.5rem; }
}

.calc-result-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.calc-line {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.calc-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

/* ============================================================
   МОДАЛКА
   ============================================================ */
#modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
}
#booking-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  width: min(480px, calc(100vw - 2rem));
  z-index: 201;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--accent); }
.modal-input--error { border-color: #ef4444 !important; }
.modal-input--error::placeholder { color: #ef4444; }

/* ============================================================
   СТРАНИЦА БАЙКА
   ============================================================ */
.breadcrumbs {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--accent); }

.bike-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .bike-header { grid-template-columns: 1fr; } }

.bike-gallery {}
.gallery-main {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--card);
  margin-bottom: 0.75rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 80px; height: 60px;
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-active { border-color: var(--accent) !important; }

.bike-vin {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.6rem 0.9rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}

.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.progress-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
.progress-step-done .progress-dot { background: var(--accent); color: #fff; }
.progress-label { font-size: 0.7rem; color: var(--secondary); white-space: nowrap; }
.progress-step-done .progress-label { color: var(--accent); }
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
  transition: background 0.3s;
  margin: 0 2px;
  margin-bottom: 1.1rem;
}
.progress-line-done { background: var(--accent); }

.bike-route { font-size: 0.9rem; }
.bike-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.bike-section { margin-bottom: 2.5rem; }

.owner-block {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.owner-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.video-wrap { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; }

.review-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}
.review-stars { color: #FFB300; font-size: 1.25rem; margin-bottom: 0.75rem; }
.review-text  { font-size: 1rem; color: var(--text); line-height: 1.7; margin-bottom: 0.75rem; font-style: italic; }
.review-author { font-size: 0.85rem; color: var(--secondary); }

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) { .similar-grid { grid-template-columns: 1fr; } }

/* ============================================================
   СТРАНИЦА ВСЕХ ОТГРУЗОК
   ============================================================ */
.all-filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.search-input {
  flex: 1; min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--secondary); }

.pagination { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.page-btn {
  min-width: 36px; height: 36px;
  border-radius: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--text); }
.page-active { background: var(--accent); border-color: var(--accent); color: #fff !important; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   УТИЛИТЫ
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.hidden { display: none !important; }
.text-accent   { color: var(--accent); }
.text-success  { color: var(--success); }
.text-warning  { color: var(--warning); }
.text-secondary{ color: var(--secondary); }
.text-white    { color: var(--text); }
.bg-card       { background: var(--card); }
.bg-surface    { background: var(--surface); }
.border-custom { border-color: var(--border); }

/* ============================================================
   ПЛАВАЮЩАЯ КНОПКА TELEGRAM
   ============================================================ */
@keyframes tgPulse {
  0%,100% { box-shadow: 0 4px 24px rgba(0,136,204,0.45); }
  50%      { box-shadow: 0 4px 36px rgba(0,136,204,0.7), 0 0 0 8px rgba(0,136,204,0.08); }
}
.float-tg {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 1001;
  display: flex; align-items: center; gap: 10px;
  background: #0088cc;
  color: #fff;
  padding: 13px 22px;
  border-radius: 50px;
  font-weight: 700; font-size: 0.875rem;
  animation: tgPulse 2.8s ease-in-out infinite;
  transition: transform 0.2s;
  text-decoration: none;
}
.float-tg:hover { transform: translateY(-3px); }
.float-tg svg { flex-shrink: 0; }
@media (max-width: 768px) { .float-tg { display: none; } }

/* ============================================================
   МОБИЛЬНАЯ НИЖНЯЯ ПАНЕЛЬ
   ============================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1001;
  background: #141414;
  border-top: 1px solid #2a2a2a;
  padding: 10px 12px;
  gap: 8px;
}
@media (max-width: 768px) { .mobile-cta-bar { display: flex; } }
.mcta-call {
  flex: 1; padding: 13px 8px;
  border-radius: 8px; text-align: center;
  font-weight: 700; font-size: 0.875rem;
  background: #1C1C1C; border: 1px solid #2A2A2A;
  color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mcta-tg {
  flex: 2; padding: 13px 8px;
  border-radius: 8px; text-align: center;
  font-weight: 700; font-size: 0.875rem;
  background: #006FAD; color: #fff; /* WCAG AA: 5.42:1 with white */
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ============================================================
   СЕКЦИЯ СРАВНЕНИЯ
   ============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card { border-radius: 14px; overflow: hidden; }
.compare-head {
  padding: 1rem 1.375rem;
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; gap: 0.625rem;
  letter-spacing: -0.01em;
}
.compare-head-bad  { background: #161010; border: 1px solid #3A1818; color: #777; border-bottom: none; border-radius: 14px 14px 0 0; }
.compare-head-good { background: rgba(255,87,34,0.12); border: 1px solid rgba(255,87,34,0.35); color: #fff; border-bottom: none; border-radius: 14px 14px 0 0; }
.compare-body-bad  { border: 1px solid #3A1818; border-top: none; background: #0F0A0A; border-radius: 0 0 14px 14px; }
.compare-body-good { border: 1px solid rgba(255,87,34,0.35); border-top: none; background: #131010; border-radius: 0 0 14px 14px; }
.compare-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 1.375rem;
  font-size: 0.875rem; line-height: 1.45;
}
.compare-row + .compare-row { border-top: 1px solid; }
.compare-row-bad  + .compare-row-bad  { border-color: #2A1515; }
.compare-row-bad  { color: #5a5a5a; }
.compare-row-good { color: #d8d8d8; }
.compare-row-good + .compare-row-good { border-color: rgba(255,87,34,0.1); }
.compare-icon-bad  { color: #c0392b; font-size: 1rem; flex-shrink:0; width:18px; margin-top:1px; }
.compare-icon-good { color: var(--success); font-size: 1rem; flex-shrink:0; width:18px; margin-top:1px; }

/* ============================================================
   О ПРОДАВЦЕ
   ============================================================ */
.about-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem; align-items: center;
  max-width: 820px; margin: 0 auto;
}
@media (max-width: 768px) { .about-wrap { grid-template-columns: 1fr; text-align: center; gap: 2rem; } }
.about-photo-box {
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--card);
  border: 3px solid rgba(255,87,34,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; margin: 0 auto;
  overflow: hidden; position: relative;
  box-shadow: 0 0 40px rgba(255,87,34,0.15);
}
.about-photo-box img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.about-name  { font-size: 1.625rem; font-weight: 800; margin-bottom: 0.2rem; }
.about-role  { color: var(--accent); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1rem; }
.about-bio   { color: var(--secondary); line-height: 1.75; margin-bottom: 1.5rem; font-size: 0.9375rem; }
.about-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
@media (max-width: 768px) { .about-stats { justify-content: center; } }
.about-stat-num { font-size: 1.625rem; font-weight: 800; color: var(--accent); font-family: 'JetBrains Mono', monospace; display: block; }
.about-stat-lbl { font-size: 0.75rem; color: var(--secondary); }

/* ============================================================
   СОЦИАЛЬНОЕ ДОКАЗАТЕЛЬСТВО (тост-уведомления)
   ============================================================ */
@keyframes toastIn  { from { opacity:0; transform:translateX(-24px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(-24px); } }
.spt-wrap {
  position: fixed; bottom: 88px; left: 20px;
  z-index: 999; pointer-events: none;
}
@media (max-width: 768px) { .spt-wrap { bottom: 74px; left: 10px; } }
.spt {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 270px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  animation: toastIn 0.35s ease forwards;
}
.spt.hiding { animation: toastOut 0.35s ease forwards; }
.spt-icon { font-size: 1.4rem; flex-shrink: 0; }
.spt-name { font-weight: 700; font-size: 0.8rem; color: var(--text); }
.spt-model { font-size: 0.75rem; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.spt-ok   { font-size: 0.72rem; color: var(--success); font-weight: 600; margin-top: 1px; }

/* ============================================================
   ГАРАНТИИ — hover акцент
   ============================================================ */
.guarantee-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}
.guarantee-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.guarantee-card:hover { transform: translateY(-3px); border-color: rgba(255,87,34,0.3) !important; }
.guarantee-card:hover::after { opacity: 1; }

/* ============================================================
   МОБИЛЬНЫЙ ОТСТУП ДЛЯ НИЖНЕЙ ПАНЕЛИ
   ============================================================ */
@media (max-width: 768px) {
  footer { padding-bottom: 70px; }
}

/* ============================================================
   КНОПКА ЗАХВАТА ЛИДА (десктоп — левый нижний угол)
   ============================================================ */
@keyframes leadPulse {
  0%,100% { box-shadow: 0 4px 24px rgba(255,87,34,0.45); }
  50%      { box-shadow: 0 4px 36px rgba(255,87,34,0.75), 0 0 0 8px rgba(255,87,34,0.1); }
}
.lead-btn {
  position: fixed;
  bottom: 28px; left: 24px;
  z-index: 1001;
  display: flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 13px 22px;
  border-radius: 50px;
  font-weight: 700; font-size: 0.875rem;
  border: none; cursor: pointer;
  animation: leadPulse 2.8s ease-in-out infinite;
  transition: transform 0.2s;
  text-decoration: none;
}
.lead-btn:hover { transform: translateY(-3px); }
@media (max-width: 768px) { .lead-btn { display: none; } }

/* Кнопка захвата в мобильной панели */
.mcta-lead {
  flex: 2; padding: 13px 8px;
  border-radius: 8px; text-align: center;
  font-weight: 700; font-size: 0.8rem;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ============================================================
   МОДАЛКА ЗАХВАТА ЛИДА
   ============================================================ */
#lead-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
}
#lead-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  width: min(480px, calc(100vw - 2rem));
  z-index: 201;
  max-height: 90vh;
  overflow-y: auto;
}
#lead-modal textarea.modal-input {
  resize: vertical; min-height: 80px;
}
