/* =====================================================================
   Modariche — design system
   Minimalist, premium, generous whitespace, restrained colour.
   ===================================================================== */

:root {
  /* Surfaces */
  --bg: #f6f6f9;
  --bg-soft: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --surface-3: #ecedf3;

  /* Ink */
  --ink: #0d0e14;
  --ink-2: #262833;
  --muted: #5c5f70;
  --muted-2: #8a8d9e;

  /* Lines */
  --line: #e6e7ef;
  --line-strong: #d6d8e4;

  /* Accent (electric violet → indigo) */
  --accent: #6d4aff;
  --accent-600: #5c37f0;
  --accent-700: #4a25d6;
  --accent-soft: #f1eeff;
  --accent-ring: rgba(109, 74, 255, 0.28);
  --indigo: #4f46e5;
  --grad: linear-gradient(135deg, #6d4aff 0%, #8b5cf6 48%, #4f46e5 100%);
  --grad-soft: linear-gradient(135deg, #f4f1ff 0%, #eef0ff 100%);

  /* Status */
  --success: #159a52;
  --success-soft: #e7f7ee;
  --warning: #b45309;
  --warning-soft: #fdf3e3;
  --danger: #d92d20;
  --danger-soft: #fdeceb;
  --info: #0b7fc4;
  --info-soft: #e8f4fd;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 11px;
  --r-md: 15px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(14, 15, 22, 0.04);
  --sh-sm: 0 1px 3px rgba(14, 15, 22, 0.06), 0 1px 2px rgba(14, 15, 22, 0.04);
  --sh-md: 0 10px 30px -12px rgba(20, 16, 60, 0.16);
  --sh-lg: 0 30px 70px -28px rgba(30, 20, 90, 0.28);
  --sh-accent: 0 14px 30px -14px rgba(109, 74, 255, 0.55);

  /* Layout */
  --container: 1180px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.22s;

  --font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-600); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-700); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--accent-soft); color: var(--accent-700); }

/* ------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.container--narrow { max-width: 780px; }
.container--wide { max-width: 1320px; }

.section { padding: 76px 0; }
.section--tight { padding: 48px 0; }
.section--soft { background: var(--surface); }
.section--alt { background: var(--bg-soft); }

.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.display {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; }
.h3 { font-size: 1.24rem; }
.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.tiny { font-size: 0.76rem; }
.strong { font-weight: 600; color: var(--ink); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  height: 46px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary { --btn-bg: var(--accent); box-shadow: var(--sh-accent); }
.btn--primary:hover { --btn-bg: var(--accent-600); }

.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { --btn-bg: #23252f; }

/* Le fond vient de --btn-bg (et non d'un background littéral) : sans cela, un
   contexte sombre qui redéfinit --btn-bg — le bandeau .cta, par exemple — se
   retrouvait avec un fond clair et un texte blanc, donc invisible. */
.btn--outline {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--sh-xs);
}
.btn--outline:hover { --btn-fg: var(--accent-700); border-color: var(--accent); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); }
.btn--ghost:hover { --btn-bg: var(--surface-2); }

.btn--danger { --btn-bg: var(--danger); }
.btn--danger:hover { --btn-bg: #b42318; }

.btn--sm { height: 38px; padding: 0 15px; font-size: 0.86rem; border-radius: var(--r-xs); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 1rem; border-radius: var(--r-md); }
.btn--block { width: 100%; }
.btn--icon { width: 42px; padding: 0; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.label .req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5f70' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 40px; }

.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: #c3c6d6; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--danger); }
.input.has-error:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.18); }

.help { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.error-text { font-size: 0.8rem; color: var(--danger); margin-top: 6px; font-weight: 500; }

.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 44px; height: 25px; border-radius: var(--r-pill);
  background: var(--surface-3); position: relative; transition: background var(--dur) var(--ease);
  flex: none;
}
.switch__track::after {
  content: ""; position: absolute; inset: 3px auto 3px 3px; width: 19px; border-radius: 50%;
  background: #fff; box-shadow: var(--sh-sm); transition: transform var(--dur) var(--ease);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(19px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px var(--accent-ring); }

/* --------------------------------------------------------------- alerts */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 0.9rem; margin-bottom: 16px;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.alert--success { background: var(--success-soft); border-color: #bfe6cd; color: #0c6b3c; }
.alert--error, .alert--danger { background: var(--danger-soft); border-color: #f6c9c5; color: #a3231a; }
.alert--warning { background: var(--warning-soft); border-color: #f3ddb7; color: #8a4a06; }
.alert--info { background: var(--info-soft); border-color: #c3e3f7; color: #0a5f95; }

/* --------------------------------------------------------------- badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em;
  background: var(--surface-2); color: var(--muted);
}
.badge--accent { background: var(--accent-soft); color: var(--accent-700); }
.badge--promo { background: #ffe9e4; color: #c02b1c; }
.badge--new { background: var(--info-soft); color: #0a5f95; }
.badge--success { background: var(--success-soft); color: #0c6b3c; }
.badge--warning { background: var(--warning-soft); color: #8a4a06; }
.badge--danger { background: var(--danger-soft); color: #a3231a; }
.badge--neutral { background: var(--surface-2); color: var(--muted); }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --------------------------------------------------------------- cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}
.card__body { padding: 24px; }
.card--pad { padding: 26px; }
.card--raised { box-shadow: var(--sh-md); }
.card--glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------- grids */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- announcement bar */
.announcement {
  background: var(--grad);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  padding: 9px 22px;
  letter-spacing: -0.005em;
}
.announcement a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------------------- header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(20, 16, 60, 0.4); }

.header__inner {
  display: flex; align-items: center; gap: 18px;
  height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 0;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.045em; color: var(--ink);
}
.brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: var(--sh-accent);
}
.brand__mark svg { width: 17px; height: 17px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav__link {
  position: relative;
  padding: 9px 13px; border-radius: var(--r-xs);
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--accent-700); font-weight: 600; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent);
}

.header__search { flex: 1; max-width: 340px; margin-left: auto; }
.header__search .search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid transparent;
  border-radius: var(--r-pill); padding: 0 8px 0 14px; height: 42px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header__search .search:focus-within {
  background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring);
}
.header__search svg { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.header__search input {
  border: 0; background: transparent; font: inherit; font-size: 0.9rem; flex: 1; min-width: 0; color: var(--ink);
}
.header__search input:focus { outline: none; }

.header__actions { display: flex; align-items: center; gap: 8px; }
/* flex: none — sans cela, une rangée serrée (header sur téléphone) comprime
   le bouton jusqu'à le rendre inutilisable au doigt. */
.icon-btn {
  position: relative;
  flex: none;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-700); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700;
}
/* Panier vide : le script pose l'attribut hidden, que display: grid ci-dessus
   annulerait — la pastille affichait alors un « 0 » permanent. */
.icon-btn__count[hidden] { display: none; }

.burger { display: none; }

@media (max-width: 1024px) {
  .nav, .header__search { display: none; }
  .burger { display: grid; }
  .header__inner { gap: 12px; }
}

/* Téléphones : la rangée du header doit tenir dans la largeur de l'écran.
   Le bouton « Explorer » garde son icône (cible de 42 px) et perd son
   libellé, et l'icône compte — déjà accessible depuis le menu — s'efface
   sur les plus petits écrans. Sans cela, la page défile horizontalement. */
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .header__inner { gap: 10px; }
  .brand { gap: 8px; font-size: 1.14rem; }
  .header__actions { gap: 6px; }
  .header__actions .btn { width: 42px; padding: 0; }
  .header__actions .btn__label { display: none; }
  /* iOS Safari agrandit toute la page dès qu'un champ fait moins de 16 px au
     focus : on remonte la taille du texte des champs sur téléphone. */
  .input, .select, .textarea, .search input { font-size: 1rem; }
}

@media (max-width: 420px) {
  .header__actions .icon-btn--account { display: none; }
}

/* --------------------------------------------------------- mobile menu */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12, 12, 20, 0.42);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 88vw); background: var(--surface);
  box-shadow: var(--sh-lg); padding: 22px;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer__nav { display: grid; gap: 2px; margin-bottom: 22px; }
.drawer__nav a {
  padding: 13px 14px; border-radius: var(--r-sm); color: var(--ink); font-weight: 500;
  border: 1px solid transparent;
}
.drawer__nav a:hover { background: var(--surface-2); }
.drawer__nav a.is-active { background: var(--accent-soft); color: var(--accent-700); }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 78px;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(109, 74, 255, 0.16), transparent 62%),
    radial-gradient(760px 460px at 6% 112%, rgba(79, 70, 229, 0.12), transparent 60%),
    var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__meta-item { font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.hero__meta-item svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

@media (max-width: 900px) {
  .hero { padding: 42px 0 54px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
}

/* Hero visual: floating resource cards */
.hero__visual { position: relative; min-height: 420px; }
.visual-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 16px;
  animation: float 7s var(--ease) infinite;
}
.visual-card--main {
  top: 24px; left: 8%; width: 74%;
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--sh-lg);
  animation-delay: 0s;
}
.visual-card--a { bottom: 36px; left: 0; width: 52%; animation-delay: -2.2s; }
.visual-card--b { top: 0; right: 0; width: 44%; animation-delay: -4.4s; }
.visual-card--c { bottom: 0; right: 6%; width: 40%; animation-delay: -1.1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.visual-row { display: flex; align-items: center; gap: 11px; }
.visual-swatch { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; flex: none; }
.visual-swatch svg { width: 18px; height: 18px; color: var(--accent-600); }
.visual-bar { height: 7px; border-radius: 4px; background: var(--surface-3); }
.visual-bar + .visual-bar { margin-top: 8px; }
.visual-bar--short { width: 62%; }
.visual-bar--accent { background: var(--grad); width: 42%; }
.visual-thumb {
  height: 96px; border-radius: var(--r-md);
  background: var(--grad-soft);
  display: grid; place-items: center; margin-bottom: 12px;
  border: 1px solid var(--line);
}
.visual-thumb svg { width: 30px; height: 30px; color: var(--accent-600); opacity: 0.85; }
.visual-kpi { font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }

@media (max-width: 900px) {
  .hero__visual { min-height: 340px; }
}

/* --------------------------------------------------------------- trust */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust__item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.trust__item:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.trust__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-600); flex: none;
}
.trust__icon svg { width: 20px; height: 20px; }
.trust__title { font-weight: 600; color: var(--ink); font-size: 0.95rem; }

@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- categories */
.category-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.category-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 180px; height: 180px;
  background: var(--grad-soft); border-radius: 50%; opacity: 0; transition: opacity var(--dur) var(--ease);
}
.category-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.category-card:hover::after { opacity: 1; }
.category-card > * { position: relative; z-index: 1; }
.category-card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--accent-600); border: 1px solid var(--line);
}
.category-card__icon svg { width: 23px; height: 23px; }
.category-card__title { font-weight: 700; font-size: 1.06rem; color: var(--ink); letter-spacing: -0.02em; }
.category-card__desc { font-size: 0.88rem; color: var(--muted); }
.category-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--accent-600); margin-top: auto; }
.category-card__link svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.category-card:hover .category-card__link svg { transform: translateX(3px); }

/* ------------------------------------------------------- product card */
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; height: 100%;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }

.product-card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--grad-soft); display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__media svg { width: 40px; height: 40px; color: var(--accent-600); opacity: 0.6; }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }

.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-card__cat { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.product-card__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin: 0; line-height: 1.3; }
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--accent-700); }
.product-card__desc { font-size: 0.86rem; color: var(--muted); line-height: 1.55; margin: 0; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price__now { font-size: 1.12rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price__was { font-size: 0.84rem; color: var(--muted-2); text-decoration: line-through; }
.price__off { font-size: 0.72rem; font-weight: 700; color: #c02b1c; background: #ffe9e4; padding: 2px 7px; border-radius: var(--r-pill); }

.product-card__actions { display: flex; gap: 8px; }

/* ----------------------------------------------------------- editorial */
.editorial {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.editorial__visual { position: relative; }
.editorial__panel {
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--sh-md); padding: 26px;
}
.editorial__list { display: grid; gap: 18px; margin-top: 26px; }
.editorial__point { display: flex; gap: 14px; align-items: flex-start; }
.editorial__num {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 0.82rem;
  background: var(--accent-soft); color: var(--accent-700);
}
.editorial__point h4 { margin: 0 0 3px; font-size: 1rem; }
.editorial__point p { margin: 0; font-size: 0.88rem; color: var(--muted); }

@media (max-width: 900px) { .editorial { grid-template-columns: 1fr; gap: 34px; } }

/* --------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 0.98rem;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; width: 20px; height: 20px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d4aff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px 20px; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* --------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
  padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  position: relative;
}
.step__num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; margin-bottom: 14px;
}
.step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- CTA */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 54px clamp(24px, 5vw, 64px);
  background: linear-gradient(135deg, #17182a 0%, #241a4d 55%, #1c1838 100%);
  color: #fff; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(109, 74, 255, 0.5), transparent 62%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.72); max-width: 54ch; margin-inline: auto; }
.cta .btn--outline { --btn-bg: rgba(255,255,255,0.06); --btn-fg: #fff; border-color: rgba(255,255,255,0.28); }
.cta .btn--outline:hover { --btn-fg: #fff; border-color: #fff; background: rgba(255,255,255,0.12); }

/* --------------------------------------------------------------- footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.68); padding: 60px 0 28px; margin-top: 0; }
.footer a { color: rgba(255, 255, 255, 0.74); }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer__title { color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer__list { display: grid; gap: 10px; font-size: 0.9rem; }
.footer__about { max-width: 34ch; font-size: 0.9rem; line-height: 1.65; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-700); }
.breadcrumbs span.sep { color: var(--muted-2); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* -------------------------------------------------------------- page head */
.page-head { padding: 44px 0 30px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }

/* -------------------------------------------------------------- toolbar/shop */
.shop { display: grid; grid-template-columns: 268px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 18px); }
.filter-group { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; }
.filter-group__title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink); margin-bottom: 14px; }
.filter-list { display: grid; gap: 4px; }
.filter-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 11px; border-radius: var(--r-xs); font-size: 0.9rem; color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.filter-link:hover { background: var(--surface-2); color: var(--ink); }
.filter-link.is-active { background: var(--accent-soft); color: var(--accent-700); font-weight: 600; }
.filter-link span.count { font-size: 0.76rem; color: var(--muted-2); }

.shop__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.shop__count { font-size: 0.88rem; color: var(--muted); }
.shop__tools { display: flex; align-items: center; gap: 10px; }

.mobile-filter-toggle { display: none; }
@media (max-width: 940px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters.is-collapsed { display: none; }
  .mobile-filter-toggle { display: inline-flex; }
}

/* --------------------------------------------------------------- pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--surface);
  font-size: 0.88rem; color: var(--ink-2); transition: all var(--dur) var(--ease);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-700); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pagination .is-disabled { opacity: 0.45; pointer-events: none; }

/* --------------------------------------------------------------- product page */
.product { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: start; }
.gallery__main {
  aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden;
  background: var(--grad-soft); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main svg { width: 62px; height: 62px; color: var(--accent-600); opacity: 0.5; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb {
  width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }

.product__buy {
  position: sticky; top: calc(var(--header-h) + 18px);
}
.buy-box { padding: 26px; }
.buy-box__price { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 18px; }
.buy-box__price .price__now { font-size: 2rem; }
.buy-box__facts { display: grid; gap: 12px; margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.buy-fact { display: flex; gap: 11px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.buy-fact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }

.product__title { margin-bottom: 14px; }
.product__desc { color: var(--muted); }

.prose { color: var(--ink-2); line-height: 1.72; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.12rem; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.5em; }
.prose img { border-radius: var(--r-md); margin: 1.4em 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 940px) {
  .product { grid-template-columns: 1fr; gap: 34px; }
  .product__buy { position: static; }
}

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- misc */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; font-size: 0.9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }

.empty-state { text-align: center; padding: 66px 24px; }
.empty-state__icon {
  width: 66px; height: 66px; border-radius: 19px; margin: 0 auto 20px;
  display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-600);
}
.empty-state__icon svg { width: 30px; height: 30px; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.88rem; flex: none;
}

.stack { display: grid; gap: 20px; }
.stack--sm { gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }

/* Cart */
.cart-line { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__media { width: 62px; height: 62px; border-radius: var(--r-sm); background: var(--grad-soft); display: grid; place-items: center; flex: none; border: 1px solid var(--line); overflow: hidden; }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__media svg { width: 22px; height: 22px; color: var(--accent-600); }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__title { font-weight: 600; color: var(--ink); font-size: 0.95rem; }

.summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 0.92rem; }
.summary-row--total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 1.12rem; font-weight: 700; color: var(--ink); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab {
  padding: 11px 16px; font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--accent-700); border-bottom-color: var(--accent); font-weight: 600; }

/* Timeline / status */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot--success { background: var(--success); }
.status-dot--warning { background: var(--warning); }
.status-dot--danger { background: var(--danger); }
.status-dot--info { background: var(--info); }
.status-dot--neutral { background: var(--muted-2); }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Toast */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; max-width: 340px; }
.toast {
  padding: 13px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff;
  font-size: 0.88rem; box-shadow: var(--sh-lg); animation: toastIn 0.3s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Loading skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Auth pages */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth__aside {
  background: linear-gradient(150deg, #17182a 0%, #2a1f57 60%, #1b1735 100%);
  color: #fff; padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth__aside::after { content: ""; position: absolute; inset: auto -20% -30% auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(109,74,255,.45), transparent 62%); }
.auth__aside > * { position: relative; z-index: 1; }
.auth__form { display: grid; place-items: center; padding: 56px 24px; }
.auth__form-inner { width: 100%; max-width: 400px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* Two-column layouts that collapse on small screens (inline styles would
   otherwise beat the media query and break mobile). */
.split {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 26px;
  align-items: start;
}
.split--wide { grid-template-columns: 1.7fr 1fr; }
.split--narrow { grid-template-columns: 1.2fr 1fr; }
.split > aside { position: sticky; top: calc(var(--header-h) + 18px); }

@media (max-width: 940px) {
  .split, .split--wide, .split--narrow { grid-template-columns: 1fr; }
  .split > aside { position: static; }
}

/* Utility spacing */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hide { display: none !important; }
