/* ==========================================================================
   Ordo Pro V2 — Refonte design (navy institutionnel + ocre miel B2B)
   Système design partagé avec l'écosystème Toobeeb (Inter + Fraunces, 9 sections,
   border-radius 8/12/18/28, max-width 1180px, WCAG AAA)
   Palette navy/ocre pour différencier de monordo (vert/or) tout en gardant
   le même langage visuel
   ========================================================================== */

/* Skip link a11y */
.tb-skip {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  text-decoration: none;
  transition: top 200ms ease;
}
.tb-skip:focus { top: 0; outline: 3px solid var(--accent); outline-offset: 2px; }

:root {
  /* Navy institutionnel B2B */
  --brand: #1E3A5F;          /* texte/CTA — 10:1 sur blanc (AAA) */
  --brand-mid: #2C4F7A;      /* fonds/borders */
  --brand-light: #DDE4ED;    /* halos pills */

  /* Accent ocre miel B2B premium */
  --accent: #C68A3A;         /* CTA principal */
  --accent-deep: #9C6A26;    /* hover */
  --accent-soft: #F5E5CC;    /* fond chaleur */

  /* Neutres chauds */
  --cream: #FAF7F2;
  --beige: #F0EAE0;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-900: #111827;

  --success: #2D6A4F;
  --danger: #B23A3A;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', 'Tiempos Headline', Georgia, serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(30,58,95,.06);
  --shadow-md: 0 8px 24px rgba(30,58,95,.08);
  --shadow-lg: 0 24px 48px rgba(30,58,95,.12);

  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--gray-900);
  background: #FFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-mid); }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--gray-900);
  margin: 0 0 16px;
}
.section-lead {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 680px;
  margin: 0 0 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  border: none;
  text-decoration: none;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #FFF; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-deep); color: #FFF; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--brand { background: var(--brand); color: #FFF; box-shadow: var(--shadow-sm); }
.btn--brand:hover { background: var(--brand-mid); color: #FFF; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--gray-200); }
.btn--ghost:hover { background: var(--cream); border-color: var(--brand-mid); }
.btn--lg { padding: 18px 32px; font-size: 17px; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.tb-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.tb-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.tb-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--gray-900);
}
.tb-logo__mark {
  width: 36px; height: 36px;
  background: var(--brand);
  color: #FFF;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
}
.tb-logo__pro {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent);
  color: #FFF;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  margin-left: 4px;
}
.tb-nav__links { display: flex; gap: 28px; }
.tb-nav__links a { color: var(--gray-600); font-weight: 500; font-size: 15px; }
.tb-nav__links a:hover { color: var(--brand); }
.tb-nav__cta { display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.tb-hero {
  background: linear-gradient(180deg, var(--cream) 0%, #FFF 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.tb-hero::before {
  content: ""; position: absolute;
  top: -200px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: .5;
  pointer-events: none;
}
.tb-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.tb-hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.tb-hero__pill::before {
  content: ""; width: 6px; height: 6px;
  background: var(--success); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(45,106,79,.18);
}
.tb-hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin: 0 0 20px;
  color: var(--gray-900);
}
.tb-hero__title em { font-style: italic; color: var(--brand); }
.tb-hero__sub {
  font-size: 18px;
  color: var(--gray-600);
  margin: 0 0 32px;
  max-width: 540px;
}
.tb-hero__ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.tb-hero__meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--gray-600);
}
.tb-hero__meta svg { color: var(--success); flex-shrink: 0; }
.tb-hero__meta-divider { width: 1px; height: 16px; background: var(--gray-200); }

/* Mockup dashboard pro */
.tb-mock {
  position: relative;
  height: 460px;
  background: #FFF;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  padding: 0;
}
.dash-header {
  background: var(--brand);
  color: #FFF;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.dash-header__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
}
.dash-header__user {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  opacity: .85;
}
.dash-header__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.dash-tabs {
  display: flex;
  background: var(--cream);
  padding: 0 22px;
  border-bottom: 1px solid var(--gray-200);
}
.dash-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
}
.dash-tab--active {
  color: var(--brand);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.dash-tab__count {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 700;
}
.dash-rows { padding: 12px 16px; }
.dash-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.dash-row:last-child { border-bottom: none; }
.dash-row__patient { font-weight: 600; color: var(--gray-900); }
.dash-row__patient small { display: block; font-weight: 400; font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.dash-row__type {
  font-size: 11px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.dash-row__type--ordo { background: #DDE7E1; color: #2E4A3F; }
.dash-row__type--toobeeb { background: #DDE9F0; color: #1F4459; }
.dash-row__time { font-size: 11px; color: var(--gray-400); }
.dash-row__action {
  background: var(--accent);
  color: #FFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: none;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.tb-trust {
  background: var(--gray-900);
  padding: 28px 0;
  color: #FFF;
}
.tb-trust__row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.tb-trust__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.tb-trust__item svg { color: var(--accent); flex-shrink: 0; }
.tb-trust__item strong { color: #FFF; font-weight: 600; }

/* ==========================================================================
   CATALOGUE 3 + 4 + 1
   ========================================================================== */
.tb-catalog {
  padding: 100px 0;
  background: #FFF;
}
.tb-catalog__head { text-align: center; margin-bottom: 48px; }
.tb-catalog__head .section-lead { margin: 0 auto 0; }

.tb-catalog__group {
  margin-top: 48px;
}
.tb-catalog__group h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--gray-900);
}
.tb-catalog__group-sub {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 24px;
}

.cat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-grid-3 > .cat-card:nth-child(4),
.cat-grid-3 > .cat-card:nth-child(5) { /* lignes complémentaires : 2 cartes centrées sur 3 cols */ }
@media (min-width: 921px) {
  .cat-grid-3:has(> :nth-child(5):last-child) {
    /* Quand 5 cartes : 3 sur la 1ère ligne, 2 centrées sur la 2e */
    grid-template-columns: repeat(6, 1fr);
  }
  .cat-grid-3:has(> :nth-child(5):last-child) > :nth-child(1),
  .cat-grid-3:has(> :nth-child(5):last-child) > :nth-child(2),
  .cat-grid-3:has(> :nth-child(5):last-child) > :nth-child(3) {
    grid-column: span 2;
  }
  .cat-grid-3:has(> :nth-child(5):last-child) > :nth-child(4) {
    grid-column: 2 / span 2;
  }
  .cat-grid-3:has(> :nth-child(5):last-child) > :nth-child(5) {
    grid-column: 4 / span 2;
  }
}
.cat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.cat-card {
  position: relative;
  background: #FFF;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-mid);
  color: inherit;
}
.cat-card--featured {
  background: linear-gradient(180deg, var(--cream) 0%, #FFF 100%);
  border-color: var(--brand-mid);
}
.cat-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.cat-card h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px;
}
.cat-card__desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}
.cat-card__price {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--brand);
}
.cat-card__price small { font-size: 13px; color: var(--gray-400); margin-left: 4px; font-family: var(--font-sans); font-weight: 400; }
.cat-card__delay {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-400);
  display: flex; align-items: center; gap: 6px;
}
.cat-card__delay svg { color: var(--success); }
.cat-card__compare {
  margin-top: 8px;
  font-size: 11px;
  color: var(--accent-deep);
  font-style: italic;
}

/* ==========================================================================
   COMMENT ÇA MARCHE
   ========================================================================== */
.tb-howto {
  padding: 100px 0;
  background: var(--cream);
}
.tb-howto__head { text-align: center; margin-bottom: 64px; }
.tb-howto__head .section-lead { margin: 0 auto; }
.tb-howto__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
.tb-howto__steps::before {
  content: ""; position: absolute;
  top: 32px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-light) 0%, var(--accent-soft) 50%, var(--brand-light) 100%);
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #FFF;
  border: 2px solid var(--brand-mid);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--brand);
  position: relative; z-index: 1;
  box-shadow: 0 2px 8px rgba(30,58,95,.1);
}
.step h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: var(--gray-900); }
.step p { font-size: 14px; color: var(--gray-600); margin: 0; line-height: 1.5; }

/* ==========================================================================
   DASHBOARD PRO (différenciateur)
   ========================================================================== */
.tb-pro {
  padding: 100px 0;
  background: #FFF;
}
.tb-pro__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.tb-pro__chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tb-pro h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -.5px;
  margin: 0 0 16px;
  line-height: 1.15;
}
.tb-pro__lead { font-size: 18px; color: var(--gray-600); margin: 0 0 28px; }
.tb-pro__features { display: grid; gap: 14px; margin-bottom: 28px; }
.tb-pro__features li {
  display: flex; align-items: flex-start; gap: 12px;
  list-style: none;
  font-size: 15px;
  color: var(--gray-900);
}
.tb-pro__features svg { color: var(--brand); margin-top: 3px; flex-shrink: 0; }

/* ==========================================================================
   INSTITUTIONS B2B (EHPAD/SSIAD/CCAS)
   ========================================================================== */
.tb-inst {
  padding: 100px 0;
  background: var(--gray-900);
  color: #FFF;
  position: relative;
  overflow: hidden;
}
.tb-inst::before {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(198,138,58,.15) 0%, transparent 70%);
}
.tb-inst__head {
  text-align: center;
  position: relative;
  margin-bottom: 56px;
}
.tb-inst__head .eyebrow { color: var(--accent); }
.tb-inst__head h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -.5px;
  color: #FFF;
}
.tb-inst__head p {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  margin: 0 auto;
  max-width: 720px;
}

.tb-inst__quote {
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 0 auto 48px;
  max-width: 780px;
  position: relative;
}
.tb-inst__quote p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  color: #FFF;
  font-style: italic;
  margin: 0 0 12px;
}
.tb-inst__quote cite {
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.tb-inst__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.inst-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  backdrop-filter: blur(8px);
}
.inst-card__icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.inst-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: #FFF;
  margin: 0 0 8px;
  letter-spacing: -.2px;
}
.inst-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
  margin: 0 0 16px;
}
.inst-card__stat {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.inst-card__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

.tb-inst__cta {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.tb-faq {
  padding: 100px 0;
  background: #FFF;
}
.tb-faq__head { text-align: center; margin-bottom: 56px; }
.tb-faq__list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--gray-900);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--brand);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__body {
  padding: 0 0 22px;
  font-size: 15.5px;
  color: var(--gray-600);
  line-height: 1.65;
}
.faq-item__body p { margin: 0 0 10px; }
.faq-item__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.tb-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #FFF;
  text-align: center;
}
.tb-cta__inner { max-width: 720px; margin: 0 auto; }
.tb-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -.4px;
  color: #FFF;
}
.tb-cta p {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin: 0 0 28px;
}
.tb-cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tb-cta .btn--ghost { background: rgba(255,255,255,.1); color: #FFF; border-color: rgba(255,255,255,.3); }
.tb-cta .btn--ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tb-foot {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 32px 0;
}
.tb-foot__row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
}
.tb-foot__brand { display: inline-flex; align-items: center; gap: 10px; color: #FFF; font-family: var(--font-serif); font-weight: 600; }
.tb-foot__certs { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.tb-foot__cert {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.tb-foot__cert svg { color: var(--accent); }
.tb-foot__links a { color: rgba(255,255,255,.6); margin-right: 16px; font-size: 12px; }
.tb-foot__links a:hover { color: #FFF; }
.tb-foot__copyright { width: 100%; text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: rgba(255,255,255,.4); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .cat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tb-inst__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .tb-nav__links { display: none; }
  .tb-hero { padding: 56px 0 64px; }
  .tb-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .tb-hero__title { font-size: 40px; }
  .tb-mock { max-width: 460px; margin: 0 auto; }
  .cat-grid-3 { grid-template-columns: 1fr; }
  .cat-grid-4 { grid-template-columns: 1fr 1fr; }
  .tb-howto__steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .tb-howto__steps::before { display: none; }
  .tb-pro__grid { grid-template-columns: 1fr; gap: 48px; }
  .tb-inst__grid { grid-template-columns: 1fr 1fr; }
  .tb-trust__row { gap: 16px; justify-content: flex-start; }
}
@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .tb-hero__title { font-size: 34px; letter-spacing: -.8px; }
  .tb-hero__sub { font-size: 16px; }
  .section-title { font-size: 26px; }
  .tb-catalog, .tb-howto, .tb-pro, .tb-inst, .tb-faq { padding: 64px 0; }
  .cat-grid-4 { grid-template-columns: 1fr; }
  .tb-inst__grid { grid-template-columns: 1fr; }
  .tb-foot__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}

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

/* ==========================================================================
   ANIMATIONS SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--fade { transform: none; }
.reveal--scale { transform: scale(.96); }
.reveal--scale.is-visible { transform: scale(1); }
.reveal--left { transform: translateX(-28px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--right { transform: translateX(28px); }
.reveal--right.is-visible { transform: translateX(0); }
.reveal--d1 { transition-delay: 80ms; }
.reveal--d2 { transition-delay: 160ms; }
.reveal--d3 { transition-delay: 240ms; }
.reveal--d4 { transition-delay: 320ms; }
.reveal--d5 { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--scale, .reveal--left, .reveal--right {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}
