/* =============================================
   BONAPLUS — style.css
   Dark B2B wholesale landing · Ukrainian
   ============================================= */

/* --- Google Fonts import --- */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Design tokens ---
   Light theme is the default (:root). Dark theme overrides via
   [data-theme="dark"], toggled by js/script.js + persisted to localStorage.
   An inline anti-FOUC script in each page's <head> applies the attribute
   before first paint when a returning visitor had chosen dark. */
:root {
  --bg:           #f7f8fa;
  --bg-alt:       #eceff4;
  --bg-card:      #ffffff;
  --border:       #e3e7ee;
  --border-card:  #dbe1ea;
  --border-tag:   #d0d8e4;
  --text:         #1c1f26;
  --text-2:       #4a505c;
  --text-3:       #5c6270;
  --text-muted:   #6b7180;
  --text-label:   #8a90a0;
  /* Brand accents derived from the blue swan logo:
     cobalt = primary interactive (water accent), navy = ink/headings (wordmark),
     terracotta = warm secondary spot accent. Dark theme keeps its gold via passthroughs. */
  --accent:       #1a5bd0;   /* cobalt — buttons, links, prices, active states */
  --accent-hover: #1247b0;
  --accent-dark:  #e9f0fc;   /* pale blue — card hover wash */
  --accent-rgb:   26, 91, 208;
  --heading:      #17325f;   /* navy — display headings */
  --accent-2:     #c1653f;   /* terracotta — warm spot accent */
  --accent-2-rgb: 193, 101, 63;
  --on-accent-2:  #fff;      /* text/ink that sits on accent-2 */
  --stripe-a:     #eef1f6;
  --stripe-b:     #e0e6f0;

  --header-bg:        rgba(249, 250, 252, 0.82);
  --stat-glass-bg:     rgba(255, 255, 255, 0.7);
  --stat-glass-border: rgba(var(--accent-rgb), 0.3);
  --table-head-bg:     #e9eef7;
  --row-hover-bg:      #f0f4fb;
  --text-soft:         #3c424e;
  --placeholder-color: #a7adba;
  --shadow-card:  0 6px 24px rgba(23, 50, 95, 0.10);
  --shadow-nav:   0 16px 32px rgba(23, 50, 95, 0.16);
  --blob-1: rgba(var(--accent-rgb), 0.14);
  --blob-2: rgba(var(--accent-2-rgb), 0.10);

  --font-display: 'Unbounded', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    10px;
  --radius-xl:    12px;
  --radius-2xl:   14px;

  --pad-section:  clamp(48px,6vw,88px) clamp(24px,5vw,64px);
  --pad-section-alt: clamp(48px,6vw,88px) clamp(24px,5vw,64px);

  --ticker-height: 34px;
}

[data-theme="dark"] {
  --bg:           #08080a;
  --bg-alt:       #0d0d0f;
  --bg-card:      #121214;
  --border:       #1c1c1f;
  --border-card:  #242428;
  --border-tag:   #2a2a2e;
  --text:         #f4f3f1;
  --text-2:       #b6b6ba;
  --text-3:       #a0a0a4;
  --text-muted:   #9a9a9e;
  --text-label:   #75757a;
  --accent:       #c9a24b;
  --accent-hover: #d4ae5a;
  --accent-dark:  #16140f;
  /* Passthroughs: dark theme keeps gold — accent-2/heading resolve back to the
     gold accent / body text so the blue-brand rules below leave dark unchanged. */
  --accent-rgb:   201, 162, 75;
  --heading:      var(--text);
  --accent-2:     var(--accent);
  --accent-2-rgb: 201, 162, 75;
  --on-accent-2:  var(--bg);
  --stripe-a:     #151517;
  --stripe-b:     #1b1b1e;

  --header-bg:        rgba(8, 8, 10, 0.9);
  --stat-glass-bg:     rgba(8, 8, 10, 0.82);
  --stat-glass-border: rgba(201, 162, 75, 0.22);
  --table-head-bg:     #161618;
  --row-hover-bg:      #101012;
  --text-soft:         #d6d6d9;
  --placeholder-color: #4a4a50;
  --shadow-card:  none;
  --shadow-nav:   0 16px 32px rgba(0, 0, 0, 0.45);
  --blob-1: rgba(201, 162, 75, 0.055);
  --blob-2: rgba(90, 120, 160, 0.04);
}

/* Theme flip: while js/script.js swaps the theme it adds .theme-switching to <html>
   for one frame so every element changes instantly and in lockstep — otherwise the
   0.3s transitions below interpolate unevenly (backgrounds fade while numbers/borders
   snap), which looks like the two themes "mixing" mid-switch. */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* NOTE: no background/color transition here — theme flips must be instant.
     A body-level fade is what made the two themes visibly "mix" mid-switch. */
}
/* Ambient background accents — soft, blurred, sit behind all sections
   that don't define their own opaque background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% -8%, var(--blob-1) 0%, transparent 42%),
    radial-gradient(circle at 108% 14%, var(--blob-2) 0%, transparent 40%),
    radial-gradient(circle at 88% 96%, var(--blob-1) 0%, transparent 38%);
  animation: bpDrift 30s ease-in-out infinite;
}
@keyframes bpDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-1.5%, 1.5%) scale(1.03); }
}
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-tag);
  border-radius: 7px;
  padding: 13px 14px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--placeholder-color); }
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* navy arrow (light) — SVG data-URI can't read CSS vars, so per-theme override below */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2317325f' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c9a24b' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
}
select option { background: var(--bg-alt); color: var(--text); }
a { color: inherit; text-decoration: none; }

/* --- Utility --- */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.label--muted { color: var(--text-label); }
.img-placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--stripe-a), var(--stripe-a) 13px,
    var(--stripe-b) 13px, var(--stripe-b) 26px
  );
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-label);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
}

/* =============================================
   TICKER
   ============================================= */
.ticker {
  position: sticky;
  top: 0;
  z-index: 101;
  height: var(--ticker-height);
  background: var(--accent);
  color: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__content {
  display: inline-flex;
  flex-shrink: 0;
  padding-right: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: var(--ticker-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.65) 30%, rgba(var(--accent-rgb),0.65) 70%, transparent);
  pointer-events: none;
}
.header.scrolled { background: var(--bg); }

.logo { display: flex; align-items: center; }
.logo img { display: block; }
/* Per-theme brand mark: blue logo (navy wordmark) reads on the light paper,
   gold logo (white wordmark) reads on the dark background.
   Selectors are scoped under .logo/.footer__logo so they out-specify the
   generic `.logo img { display:block }` rule above. */
.logo-img, .footer__logo-img { display: block; object-fit: contain; }
.logo .logo-img--dark, .footer__logo .footer__logo-img--dark { display: none; }
[data-theme="dark"] .logo .logo-img--light,
[data-theme="dark"] .footer__logo .footer__logo-img--light { display: none; }
[data-theme="dark"] .logo .logo-img--dark,
[data-theme="dark"] .footer__logo .footer__logo-img--dark { display: block; }

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  list-style: none;
}
.nav a {
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.header__phone-icon { font-size: 16px; line-height: 1; }
.header__phone-numbers { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.header__phone a { color: inherit; transition: color 0.2s; }
.header__phone a:hover { color: var(--accent-hover); }
.mobile-nav .header__phone {
  color: var(--accent);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .header__phone a { padding: 0; border-bottom: none; }
.header__actions { display: flex; align-items: center; gap: 14px; }

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-tag);
  background: var(--bg-card);
  border-radius: 50%;
  color: var(--accent);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle:active { transform: translateY(0); }
.theme-toggle__icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.35s ease, transform 0.45s ease;
}
.theme-toggle__icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle__icon--sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle__icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
.mobile-nav__theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.btn { border: none; font-weight: 700; transition: all 0.2s; }
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--lg {
  padding: 16px 30px;
  font-size: 15px;
  border-radius: var(--radius-sm);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-tag);
  padding: 15px 28px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--full {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 114px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  z-index: 99;
  box-shadow: var(--shadow-nav);
}
.mobile-nav.open { display: flex; max-height: calc(100vh - 114px); overflow-y: auto; }
.mobile-nav a {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover { background: var(--bg-card); color: var(--text); }
.mobile-nav .btn--primary {
  margin: 16px 24px 20px;
  width: calc(100% - 48px);
  text-align: center;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: clamp(48px,6vw,88px) clamp(24px,5vw,64px) clamp(36px,5vw,60px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}
.hero__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--heading);
}
.hero__desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__highlight {
  background: var(--accent-2);
  color: var(--on-accent-2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
}
.hero__cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__img-wrap { position: relative; }
.hero__glow {
  position: absolute;
  top: -140px;
  right: -80px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.18) 0%, transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.hero__img {
  position: relative;
  z-index: 1;
  height: 430px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  z-index: 2;
}
.hero__corner--tl { top: 0; left: 0; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hero__corner--tr { top: 0; right: 0; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.hero__corner--bl { bottom: 0; left: 0; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hero__corner--br { bottom: 0; right: 0; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.hero__stat {
  position: absolute;
  background: var(--stat-glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--stat-glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  z-index: 3;
}
.hero__stat--bl { bottom: 20px; left: 20px; }
.hero__stat--tr { top: 20px; right: 20px; }
.hero__stat-number { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.hero__stat-big { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; }
.hero__stat-label { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.hero__stat-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--text-label); text-transform: uppercase; margin-bottom: 4px; }
.hero__photo img { display: block; width: 100%; border-radius: var(--radius-lg); }

/* =============================================
   STATS
   ============================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__item {
  padding: 30px 40px;
  border-right: 1px solid var(--border);
}
.stats__item:last-child { border-right: none; }
.stats__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--accent);
}
.stats__label { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }

/* =============================================
   COUNTRIES BAR
   ============================================= */
.countries {
  padding: 24px clamp(24px,5vw,64px);
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.countries__prefix {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.countries__list {
  display: flex;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  flex-wrap: wrap;
  align-items: center;
}
.countries__dot { color: var(--border-tag); }

/* =============================================
   CATEGORIES
   ============================================= */
.categories { padding: var(--pad-section); }
.section-header { margin-bottom: 40px; }
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--heading);
}
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 600px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards-grid--popular { max-width: 1100px; margin: 0 auto; }
.card {
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--accent);
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.card__img {
  /* 190px ≈ 16:9 at the usual card width, so the photos crop barely at all.
     Only asortyment.html uses this class. The stripes stay as the fallback for
     any card that has no photo yet. */
  height: 190px;
  background: repeating-linear-gradient(
    45deg, var(--stripe-a), var(--stripe-a) 11px, var(--stripe-b) 11px, var(--stripe-b) 22px
  );
  display: flex; align-items: center; justify-content: center;
  color: var(--text-label);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow: hidden;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.card:hover .card__img img { transform: scale(1.04); }
.card__video { width: 100%; aspect-ratio: 4 / 7; margin: 0; overflow: hidden; display: block; }
.card__video video { width: 100%; height: 100%; display: block; }
.card__body { padding: 22px; }
.card__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.card__price { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.card__desc { font-size: 14px; color: var(--text-3); line-height: 1.55; }

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
  align-items: center;
}
.tags__prefix { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); margin-right: 2px; }
.tag {
  border: 1px solid var(--border-tag);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

.cards-footer {
  text-align: center;
  margin-top: 32px;
}

/* Grade spectrum bar */
.grade-spectrum { margin-bottom: 28px; }
.grade-spectrum__bar { display: flex; gap: 3px; height: 5px; }
.grade-spectrum__seg { flex: 1; border-radius: 2px; }
.grade-spectrum__seg:nth-child(1) { background: rgba(var(--accent-rgb),0.22); }
.grade-spectrum__seg:nth-child(2) { background: rgba(var(--accent-rgb),0.38); }
.grade-spectrum__seg:nth-child(3) { background: rgba(var(--accent-rgb),0.55); }
.grade-spectrum__seg:nth-child(4) { background: rgba(var(--accent-rgb),0.75); }
.grade-spectrum__seg:nth-child(5) { background: var(--accent); }
.grade-spectrum__labels { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--text-label); }

/* Card numbered tier label */
.card__num { font-family: var(--font-mono); font-size: 10px; color: var(--text-label); margin-right: 2px; }

/* bpFade scroll-reveal animation */
@keyframes bpFade {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bp-fade { opacity: 0; }
.bp-fade--visible { animation: bpFade 0.55s ease forwards; }
.slider-dots { display: none; }
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-tag);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.slider-dot.active { background: var(--accent); transform: scale(1.2); }

/* =============================================
   PRICING
   ============================================= */
.pricing {
  padding: var(--pad-section);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.price-table {
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}
.price-table__head {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  background: var(--table-head-bg);
  padding: 16px 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  font-family: var(--font-mono);
}
.price-table__head div:last-child { text-align: right; }
.price-table__row {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s;
}
.price-table__row:hover { background: var(--row-hover-bg); }
.price-table__name { font-weight: 600; font-size: 16px; }
.price-table__bar { display: flex; gap: 5px; }
.bar-pip {
  width: 34px;
  height: 7px;
  border-radius: 4px;
  background: var(--border-tag);
}
.bar-pip.active { background: var(--accent); }
.price-table__vol { text-align: right; font-size: 14px; color: var(--text-muted); }

.pricing-cards {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.pricing-card {
  flex: 1;
  min-width: 240px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.pricing-card__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 6px;
}
.pricing-card__desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.pricing-card--cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   WHY US
   ============================================= */
.why { padding: var(--pad-section); }
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.reason__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 10px;
}
.reason h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.reason p { font-size: 14px; color: var(--text-3); line-height: 1.55; }

/* =============================================
   GALLERY
   ============================================= */
.gallery {
  padding: var(--pad-section);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  height: 240px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-extra, .gallery-extra__inner { display: contents; }
.gallery-more-btn {
  display: none;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.gallery-more-btn:hover { background: var(--accent); color: var(--bg); }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { padding: var(--pad-section); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial {
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}
.testimonial:hover { border-color: var(--border-tag); }
.testimonial__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--accent-2);
  color: var(--on-accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial__name { font-size: 14px; font-weight: 600; }
.testimonial__role { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: var(--pad-section);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact__info h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--heading);
}
.contact__info p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.contact__details { display: flex; flex-direction: column; gap: 14px; }
.contact__detail-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-label);
  display: block;
  margin-bottom: 2px;
}
.contact__detail-value { font-size: 15px; color: var(--text-soft); }
.social-links { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.social-link {
  border: 1px solid var(--border-tag);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }

.contact__form {
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 18px; }
label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-label);
  display: block;
  margin-bottom: 7px;
  letter-spacing: 0.04em;
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}
.form-success__icon { font-size: 40px; margin-bottom: 12px; }
.form-success__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--accent); }
.form-success__text { font-size: 14px; color: var(--text-muted); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 36px clamp(24px,5vw,64px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__logo { display: flex; align-items: center; }
.footer__logo img { display: block; }
.footer__tagline { font-size: 13px; color: var(--text-label); }
.footer__copy { font-size: 13px; color: var(--text-label); }

/* =============================================
   CTA BANNER (subpages)
   ============================================= */
.cta-banner {
  padding: var(--pad-section);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-banner .section-header { margin-bottom: 0; max-width: 600px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero { padding: 56px 40px 48px; gap: 40px; }
  .hero__h1 { font-size: 42px; }
  :root { --pad-section: 60px 40px; }
  .header { padding: 18px 40px; }
  .footer { padding: 32px 40px; }
  .stats__item { padding: 24px 28px; }
  .countries { padding: 22px 40px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__img { height: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stats__item:nth-child(4) { border-top: 1px solid var(--border); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad-section: 48px 24px; }
  .header { padding: 16px 24px; }
  .logo img { height: 48px; }
  .nav { display: none; }
  .header .btn--primary { display: none; }
  .header__actions > .header__phone { display: none; }
  .header__actions > .theme-toggle { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 24px 40px; }
  .hero__h1 { font-size: 32px; }
  .hero__desc { font-size: 15px; }
  .section-header h2 { font-size: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { padding: 20px 20px; }
  .stats__number { font-size: 26px; }
  .countries { padding: 18px 24px; gap: 12px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--popular {
    display: flex;
    grid-template-columns: none;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .cards-grid--popular::-webkit-scrollbar { display: none; }
  .cards-grid--popular .card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
  }
  .slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .price-table__head { grid-template-columns: 1fr 1.4fr 0.6fr; font-size: 10px; }
  .price-table__row { grid-template-columns: 1fr 1.4fr 0.6fr; }
  .bar-pip { width: 20px; }
  .reasons { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 180px; }
  .gallery-extra {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease;
  }
  .gallery-extra.expanded { grid-template-rows: 1fr; }
  .gallery-extra__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: hidden;
    min-height: 0;
  }
  .gallery-more-btn { display: block; margin: 20px auto 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer { padding: 28px 24px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__stat { display: none; }
  .hero__glow { display: none; }
  .hero__corner { display: none; }
  .pricing-cards { flex-direction: column; }
  .pricing-card { min-width: unset; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =============================================
   LOT CARDS (lots.html)
   ============================================= */

.lots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: var(--pad-section);
  padding-top: 0;
}

.lot-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lot-card:hover {
  border-color: var(--accent);
}

.lot-card__photo {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--stripe-a) 0,
      var(--stripe-a) 6px,
      var(--stripe-b) 6px,
      var(--stripe-b) 12px
    );
  overflow: hidden;
  flex-shrink: 0;
}

.lot-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lot-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}

.lot-card__category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.1);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  align-self: flex-start;
}

.lot-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.lot-card__meta {
  display: flex;
  gap: 16px;
}

.lot-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lot-card__meta-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.lot-card__meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-label);
  text-transform: uppercase;
}

.lot-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
}

.lots-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
}

.lots-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-label);
}

.btn--full {
  width: 100%;
  margin-top: auto;
}

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

@media (max-width: 768px) {
  .lots-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ADMIN PANEL (admin.html)
   ============================================= */

.admin-password-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-password-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.admin-password-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.admin-password-card p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.5;
}

.admin-error {
  display: none;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e05050;
}

.admin-panel {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px clamp(24px,5vw,64px) 80px;
}

.admin-section {
  margin-bottom: 56px;
}

.admin-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.admin-success {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(var(--accent-rgb),0.08);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text-2);
}

.admin-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table__thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.admin-table__thumb-placeholder {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(
      -45deg,
      var(--stripe-a) 0,
      var(--stripe-a) 4px,
      var(--stripe-b) 4px,
      var(--stripe-b) 8px
    );
}

.status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.status-badge--active {
  color: #5ec98e;
  background: rgba(94,201,142,0.1);
  border: 1px solid rgba(94,201,142,0.25);
}

.status-badge--inactive {
  color: var(--text-label);
  background: rgba(117,117,122,0.1);
  border: 1px solid rgba(117,117,122,0.2);
}

.btn--sm {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-tag);
  color: var(--text-2);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--danger {
  background: rgba(224,80,80,0.1);
  border: 1px solid rgba(224,80,80,0.3);
  color: #e05050;
}

.btn--danger:hover {
  background: rgba(224,80,80,0.18);
  border-color: #e05050;
}

/* ── LOT DETAIL PAGE ────────────────────────────────────── */
.lot-detail {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(32px,5vw,64px) clamp(16px,4vw,40px);
}
.lot-detail__back {
  margin-bottom: 32px;
}
.lot-detail__back a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-label);
  text-decoration: none;
  transition: color .2s;
}
.lot-detail__back a:hover { color: var(--accent); }
.lot-detail__grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 52px;
  align-items: start;
}
.lot-detail__photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  background-image: repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 0 12px);
}
.lot-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lot-detail__info {
  display: flex;
  flex-direction: column;
}
.lot-detail__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 0;
  line-height: 1.25;
}
.lot-detail__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 18px 0;
  margin: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lot-detail__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lot-detail__meta-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.lot-detail__meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.lot-detail__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 28px;
}
.lot-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  text-align: center;
  gap: 12px;
  padding: 64px 24px;
}
.lot-unavailable__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--text-label);
  margin-bottom: 8px;
}
.lot-unavailable__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.lot-unavailable__sub {
  color: var(--text-2);
  font-size: 15px;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .lot-detail__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
