/* =====================================================
   CJTrader — Design System (Light Theme)
   ===================================================== */

:root {
  --bg:            #FAF8F5;
  --surface:       #FFFFFF;
  --surface-2:     #F3EFE8;
  --gold:          #C9A84C;
  --gold-dark:     #A8873A;
  --gold-light:    #F0E6CC;
  --text-primary:  #1A1A1A;
  --text-secondary:#6B7280;
  --text-muted:    #9CA3AF;
  --border:        #E8E3D9;
  --border-dark:   #D4C9B0;
  --success:       #16A34A;
  --danger:        #DC2626;
  --nav-h:         68px;
  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
  --font:          'Montserrat', 'Inter', sans-serif;
}

/* ── Reset базовых стилей ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Типографика ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.25rem; }

/* ── Кнопки ── */
.btn-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.25rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-gold:hover  { background: var(--gold-dark); color: #fff; }
.btn-gold:active { transform: scale(.98); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1.2rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ── Карточки ── */
.cj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.cj-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ── Trust badges ── */
.trust-bar {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-item .ti-icon { font-size: 1.3rem; color: var(--gold); }

/* ── Бейджи на карточках ── */
.badge-corner  { position: absolute; top: 0; z-index: 2; padding: .3rem .55rem; border-radius: .4rem; color: #fff; font-weight: 700; font-size: .75rem; }
.badge-new     { background: #DC2626; right: 52px; }
.badge-sale    { background: var(--success); right: 0; }
.badge-promo   { background: #2563EB; left: 0; }

/* ── Пагинация ── */
.pagination .page-link { color: var(--text-primary); border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination .page-link:hover { background: var(--gold-light); color: var(--gold-dark); }

/* ── Форм инпуты ── */
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
  outline: none;
}

/* ── Утилиты ── */
.text-gold  { color: var(--gold) !important; }
.bg-gold    { background: var(--gold) !important; }
.border-gold{ border-color: var(--gold) !important; }
.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  position: relative;
  padding-bottom: .6rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

.hp-card-img-wrap { position: relative; overflow: hidden; }
.hp-card-img-hover {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity .3s;
}
.hp-card-img-wrap:hover .hp-card-img-hover { opacity: 1; }
.hp-card-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity .3s;
}
.hp-card-img-wrap:hover .hp-card-video { opacity: 1; }
