/* Nia Genomo — reprise du design « Nia Genomo — design de la webapp ».
   Polices auto-hébergées : aucune requête vers un service tiers. */

@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/gloock-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gloock";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/gloock-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #C8102E;      /* parent 1, actions principales */
  --parent-b: #5E0B1E;    /* parent 2 */
  --ink: #3B0712;
  --ink-soft: #5A1A26;
  --wine: #7A0F25;
  --ground: #FFF6F6;
  --surface: #FFFFFF;
  --line: #F3C9CF;
  --unused-line: #E8A3AE;
  --unused-ink: #B86B79;
  --on-dark: #FBE3E7;
  --on-dark-soft: #F9D5DA;
  --serif: "Gloock", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --page-max: 1200px;
  --gutter: 32px;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wine); }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Éléments propres à une taille d'écran. `!important` car ces classes
   s'ajoutent à des composants qui fixent déjà leur `display`. */
@media (min-width: 641px) {
  .only-mobile { display: none !important; }
}

/* ---------- En-tête et pied de page ---------- */

.site-header {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__name { font-family: var(--serif); font-size: 30px; line-height: 1; }
.logo-mark { flex: 0 0 auto; }

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}
.site-nav a { text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.site-nav__favs { gap: 8px; }
.site-nav__favs .icon { color: var(--accent); }

.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.site-footer__brand { font-family: var(--serif); font-size: 26px; }
.site-footer__text { max-width: 42em; display: flex; flex-direction: column; gap: 8px; }
.site-footer__text p { font-size: 15px; line-height: 1.5; }
.site-footer__link { color: var(--on-dark); font-weight: 600; }
.site-footer__link:hover { color: #fff; }

/* ---------- Éléments communs ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.lead { font-size: 20px; line-height: 1.5; max-width: 30em; color: var(--ink-soft); }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.05; }

.btn {
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 16px var(--sans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 0;
}
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); background: var(--surface); }
.btn--outline:hover { background: var(--ground); color: var(--ink); }
.btn--dark { color: #fff; background: var(--ink); }
.btn--accent { color: #fff; background: var(--accent); }

.cta {
  position: relative;
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 18px var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.cta:hover { background: #A90D27; }
.cta__symbols {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  font-size: 24px;
  line-height: 1;
}
.cta__symbols span { display: inline-block; }
.cta__s1 { transform: rotate(-14deg); }
.cta__s2 { margin-left: -6px; transform: rotate(10deg) translateY(-4px); }
.cta__s3 { margin-left: -6px; transform: rotate(-6deg) translateY(3px); }
.cta__s4 { margin-left: -6px; transform: rotate(16deg); }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.swatch { width: 12px; height: 12px; display: inline-block; flex: 0 0 auto; }
.swatch--a, .parent--a .swatch { background: var(--accent); border-radius: 3px; }
.swatch--b, .parent--b .swatch { background: var(--parent-b); border-radius: 999px; }
.swatch--both { background: linear-gradient(90deg, var(--accent) 50%, var(--parent-b) 50%); border-radius: 3px 999px 999px 3px; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-soft); }
.legend__item { display: flex; align-items: center; gap: 6px; }

/* Pastilles de lettres */
.chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--serif);
}
.chip--a { background: var(--accent); border-radius: 4px; }
.chip--b { background: var(--parent-b); border-radius: 999px; }
/* Lettre commune : moitié carrée rouge (parent 1), moitié ronde bordeaux (parent 2). */
.chip--both {
  background: linear-gradient(90deg, var(--accent) 50%, var(--parent-b) 50%);
  border-radius: 4px 999px 999px 4px;
}
.chip--unused {
  background: transparent;
  border: 1.5px dashed var(--unused-line);
  color: var(--unused-ink);
}
.chip--sm { width: 32px; height: 32px; font-size: 18px; }
.chip--md { width: 46px; height: 46px; font-size: 24px; }
.chip--md.chip--a { border-radius: 6px; }
.chip--md.chip--both { border-radius: 6px 999px 999px 6px; }
.chip--lg { width: 58px; height: 58px; font-size: 32px; }
.chip--lg.chip--a { border-radius: 8px; }
.chip--lg.chip--both { border-radius: 8px 999px 999px 8px; }
.chip--md + .chip--md, .chip--lg + .chip--lg { margin-left: 2px; }

/* ---------- Accueil ---------- */

.home-hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
}
.home-hero__intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.mixer {
  flex: 1 1 520px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 18px 40px -24px rgba(122, 15, 37, 0.35);
}

.mixer__setting { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mixer__setting legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.mixer__hint { font-size: 14px; color: var(--ink-soft); }

.segmented {
  display: grid;
  gap: 6px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
}
.segmented--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segmented__option {
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 16px var(--sans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.segmented__option:hover:not(:disabled):not(.is-active) { background: var(--surface); }
.segmented__option:disabled { cursor: default; opacity: 0.55; }
.segmented__option.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.segmented__note { font-size: 11px; font-weight: 500; color: var(--on-dark-soft); }

.mixer__body { display: flex; flex-direction: column; }

.parents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.parent { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.parent__label { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.parent__row { display: flex; gap: 8px; }
.parent__symbol {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.parent__symbol-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.parent__input {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  height: 56px;
  padding: 0 8px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  font: 500 19px var(--sans);
  color: var(--ink);
  background: var(--ground);
  text-align: center;
}
.parent--b .parent__input { border-color: var(--parent-b); }
.parent__input::placeholder { color: var(--unused-ink); opacity: 1; }

.helix { position: relative; }
.helix__img { display: block; width: 100%; height: auto; }
.helix__drops { position: absolute; inset: 0; pointer-events: none; }
.drop { position: absolute; line-height: 1; will-change: transform, opacity; }

.form-error { min-height: 1.5em; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--accent); text-align: center; }
.form-error:empty { min-height: 0; margin: 0; }

.story {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.story__head { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.story__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.story__kicker { font-size: 16px; font-weight: 600; color: var(--wine); }
.story__body { max-width: 46rem; display: flex; flex-direction: column; gap: 18px; }
.story__body > p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.story__body h3 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
}
.story__rules {
  margin: 4px 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.story__rules li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--accent); padding-top: 16px; }
.story__number { font-family: var(--serif); font-size: 36px; color: var(--accent); line-height: 1; }
.story__rules p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.story__example {
  margin: 4px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.story__example .chip-row { gap: 6px; }
.story__example figcaption { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.story__equation { font-family: var(--serif); font-size: 24px; color: var(--ink); }
/* Les signes de la police de titre sont trop fins : on les prend dans la police de texte. */
.story__op { font-family: var(--sans); font-weight: 600; color: var(--accent); margin: 0 0.3em; }
.story__link { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.story__play { align-self: flex-start; }

/* ---------- Résultat ---------- */

.result-topbar {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.back-link { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.result-topbar__summary { font-size: 16px; color: var(--ink-soft); }

.m-result-header { display: none; }
.couple { display: flex; align-items: center; gap: 6px; }
.couple .icon { color: var(--accent); }

.result-hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.result-hero__main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.result-hero__name { display: flex; flex-direction: column; gap: 12px; }
.result-hero__kicker { font-size: 18px; color: var(--ink-soft); }
.result-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 112px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.share { display: flex; flex-direction: column; gap: 14px; }
.share__title { font-size: 18px; font-weight: 700; }
.share__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share__note { font-size: 14px; color: var(--ink-soft); }
.share__status { font-size: 14px; font-weight: 600; color: var(--wine); overflow-wrap: anywhere; }
.share__status:empty { display: none; }

.dna-card {
  flex: 1 1 460px;
  min-width: 0;
  background: var(--surface);
  border-radius: 32px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid var(--line);
}
.dna-card__parent { display: flex; flex-direction: column; gap: 10px; }
.dna-card__label { font-size: 15px; font-weight: 600; color: var(--wine); }
.dna-card__rule { margin: 0; border: 0; height: 1px; background: var(--line); }
.dna-card__text { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.dna-card .chip-row { gap: 6px; }

.proposals { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proposals__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 64px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.proposals__head { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.proposals__titles { flex: 1 1 520px; display: flex; flex-direction: column; gap: 8px; }
.proposals__titles p { font-size: 17px; color: var(--ink-soft); }
.proposals__head .btn { height: 48px; }
.proposals__tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters__label { font-size: 15px; font-weight: 600; margin-right: 6px; }
.pill {
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--ground);
  color: var(--ink);
  font: 500 15px var(--sans);
  cursor: pointer;
}
.pill.is-active { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__name { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; min-width: 0; }
.card__pick {
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.card__pick:hover { color: var(--accent); }
.card__method { font-size: 14px; color: var(--wine); font-weight: 500; }
.fav-btn {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fav-btn[aria-pressed="true"] { color: var(--accent); }

.loading { max-width: var(--page-max); margin: 0 auto; padding: 80px var(--gutter); font-size: 18px; color: var(--ink-soft); }

.notice {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.notice p { font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.notice__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.notice--inline { max-width: none; margin: 0; padding: 0; }

/* ---------- Favoris ---------- */

.favorites {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section-title--lg { font-size: 72px; line-height: 0.98; letter-spacing: -0.02em; color: var(--accent); }
.favorites__note { font-size: 17px; line-height: 1.5; max-width: 40em; color: var(--ink-soft); }
.favorites .card { background: var(--surface); }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .only-desktop { display: none !important; }

  .site-header { padding: 20px 24px 0; flex-wrap: nowrap; }
  .brand { min-width: 0; }
  .brand__name { font-size: 21px; }
  .brand { gap: 8px; }
  .brand .logo-mark { width: 41px; height: 28px; }
  .site-nav__how { display: none !important; }
  .site-nav__favs {
    width: 44px;
    justify-content: center;
    border-radius: 999px;
    background: var(--line);
  }
  .site-nav__favs .icon { color: var(--accent); }
  .site-nav__favs-label { display: none; }

  /* Accueil : fond rouge et formulaire en panneau du bas */
  .shell--home { background: var(--accent); }
  .shell--home .site-header, .shell--home .brand { color: #fff; }
  .shell--home .site-nav__favs { background: rgba(255, 255, 255, 0.16); }
  .shell--home .site-nav__favs .icon { color: #fff; }

  .home-hero { padding: 28px 0 0; gap: 28px; }
  .home-hero__intro { padding: 0 24px; gap: 12px; flex-basis: 100%; }
  .display { font-size: 42px; }
  .shell--home .display { color: #fff; }
  .lead { font-size: 17px; }
  .shell--home .lead { color: #FFE4E8; }

  .mixer {
    flex-basis: 100%;
    background: var(--ground);
    border: 0;
    border-radius: 32px 32px 0 0;
    padding: 24px 20px 28px;
    gap: 18px;
    box-shadow: none;
  }
  .mixer__setting legend { font-size: 13px; margin-bottom: 8px; }
  .segmented { gap: 4px; background: var(--surface); border-radius: 12px; padding: 3px; }
  .segmented__option { height: 44px; border-radius: 9px; font-size: 15px; }
  .segmented__note { font-size: 10px; }
  .mixer__hint { font-size: 13px; }
  .parents { gap: 12px; }
  .parent { gap: 6px; }
  .parent__label { font-size: 13px; }
  .parent__symbol { width: 48px; height: 48px; flex-basis: 48px; font-size: 24px; }
  .parent__input { height: 48px; font-size: 16px; background: var(--surface); }
  .cta { height: 56px; font-size: 17px; }
  .cta__symbols { left: 16px; font-size: 20px; }

  .story { padding: 48px 24px 64px; gap: 24px; }
  .story__title { font-size: 34px; }
  .story__body > p { font-size: 17px; }
  .story__body h3 { font-size: 24px; margin-top: 14px; }
  .story__example { padding: 20px; }
  .story__example .chip-row { gap: 4px; }
  .story__example .chip--lg { width: 36px; height: 36px; font-size: 22px; }
  .story__example .chip--lg + .chip--lg { margin-left: 0; }
  .story__equation { font-size: 20px; }
  .section-title { font-size: 28px; }

  /* Résultat */
  .shell--result .site-header { display: none; }
  .result-topbar { display: none; }
  .m-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 16px 0;
    font-size: 16px;
    font-weight: 600;
  }
  .result-hero { padding: 16px 24px 28px; gap: 18px; }
  .result-hero__main { gap: 18px; flex-basis: 100%; }
  .result-hero__name { gap: 6px; }
  .result-hero__kicker { font-size: 15px; }
  .result-name { font-size: 64px; }
  .share { gap: 10px; }
  .share__title { font-size: 15px; }
  .share__buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .share__buttons .btn { height: 48px; padding: 0 8px; font-size: 14px; gap: 6px; }
  .share__buttons .icon { width: 18px; height: 18px; }

  .proposals__inner { padding: 24px 16px 28px; gap: 12px; }
  .proposals__head { padding: 0 8px; }
  .proposals__titles { gap: 4px; }
  .proposals__titles p { font-size: 14px; }
  .proposals__tools { padding: 0 8px 4px; }
  .legend { font-size: 13px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card { border-radius: 20px; padding: 18px; gap: 12px; }
  .card__name { font-size: 28px; }
  .fav-btn { width: 44px; height: 44px; flex-basis: 44px; border: 0; background: #FFF0F2; }
  .chip--sm { width: 28px; height: 28px; font-size: 16px; }
  .card .chip-row { gap: 3px; }
  .proposals .cta { margin-top: 10px; }

  .favorites { padding: 24px 24px 64px; }
  .section-title--lg { font-size: 42px; }

  .site-footer__inner { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
