/* ============================================================
   AdriGym Media — Sport Magazine Crimson (French, Morocco)
   Parent: Astra | Hero: mosaic-categories | Header: sticky-minimal
   Footer: 4 cols sport-bold | Button: red-pill
   ============================================================ */

/* ---- 1. ROOT VARIABLES ---- */
:root {
  --rp-primary:    #E63946;
  --rp-primary-2:  #C42836;
  --rp-primary-3:  #FF5A66;
  --rp-accent:     #1D3557;
  --rp-accent-2:   #0F2238;
  --rp-bg:         #F8F9FA;
  --rp-surface:    #FFFFFF;
  --rp-text:       #1D3557;
  --rp-text-soft:  #5C6B7D;
  --rp-line:       #E1E5EB;
  --rp-line-2:     #F0F2F5;

  --rp-font-head: "Barlow Condensed", "Oswald", "Inter", "Helvetica Neue", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --rp-font-body: "Inter", "Helvetica Neue", system-ui, -apple-system, Segoe UI, Arial, sans-serif;

  --rp-radius-sm: 4px;
  --rp-radius:    8px;
  --rp-radius-lg: 16px;
  --rp-radius-pill: 999px;

  --rp-shadow-1: 0 4px 14px rgba(29,53,87,0.08);
  --rp-shadow-2: 0 22px 50px rgba(29,53,87,0.15);
  --rp-shadow-accent: 0 18px 40px rgba(230,57,70,0.28);

  --rp-container: 1280px;
  --rp-gutter: clamp(16px, 3vw, 40px);

  --rp-header-h: 78px;
}

/* ---- 2. BASE / RESET-LITE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rp-body {
  margin: 0;
  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: var(--rp-font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rp-font-head);
  font-weight: 700;
  color: var(--rp-accent);
  line-height: 1.1;
  margin: 0 0 .55em;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); font-weight: 600; text-transform: none; }
h4 { font-size: 1rem; letter-spacing: .12em; }

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--rp-primary);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--rp-primary-2); }

.rp-container { width: 100%; max-width: var(--rp-container); margin: 0 auto; padding: 0 var(--rp-gutter); }

.rp-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- 3. BUTTONS (red-pill, sport-bold) ---- */
.rp-btn {
  display: inline-block;
  font-family: var(--rp-font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 14px 32px;
  border: 2px solid var(--rp-accent);
  background: var(--rp-accent);
  color: #fff;
  border-radius: var(--rp-radius-pill);
  cursor: pointer;
  text-align: center;
  transition: all .25s ease;
  text-decoration: none;
  line-height: 1.2;
}
.rp-btn:hover { background: var(--rp-accent-2); border-color: var(--rp-accent-2); color: #fff; }

.rp-btn--cta {
  background: var(--rp-primary);
  border-color: var(--rp-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(230,57,70,0.30);
}
.rp-btn--cta:hover {
  background: var(--rp-primary-2);
  border-color: var(--rp-primary-2);
}

.rp-btn--ghost {
  background: transparent;
  border-color: var(--rp-accent);
  color: var(--rp-accent);
}
.rp-btn--ghost:hover {
  background: var(--rp-accent);
  color: #fff;
}

/* ---- 4. HEADER (sticky-minimal, sport-bold style) ---- */
.rp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: transform .35s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.rp-header.is-scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--rp-line);
  box-shadow: 0 6px 22px rgba(29,53,87,0.08);
}
.rp-header.is-hidden { transform: translateY(-100%); }

.rp-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--rp-header-h);
  padding-top: 12px; padding-bottom: 12px;
}
.rp-header__wave {
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, var(--rp-primary) 0%, var(--rp-primary-3) 50%, var(--rp-primary) 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.rp-header.is-scrolled .rp-header__wave { opacity: 1; }

.rp-header__brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  text-decoration: none; color: var(--rp-accent);
}
.rp-header__logo {
  width: 44px; height: 44px;
  border-radius: var(--rp-radius-sm);
  object-fit: contain;
}
.rp-header__brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.rp-header__title {
  font-family: var(--rp-font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--rp-accent);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.rp-header__tagline {
  font-size: .72rem;
  color: var(--rp-text-soft);
  margin-top: 2px;
  font-weight: 500;
}

.rp-header__nav { flex: 1; display: flex; justify-content: center; }
.rp-header__nav .rp-nav-list,
.rp-header__nav ul {
  display: flex; flex-wrap: wrap; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
.rp-header__nav li { position: relative; }
.rp-header__nav a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--rp-font-head);
  font-size: .95rem; font-weight: 600;
  color: var(--rp-accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: var(--rp-radius-sm);
  transition: all .2s ease;
}
.rp-header__nav a:hover {
  color: var(--rp-primary);
  background: rgba(230,57,70,0.07);
}
.rp-header__nav .current-menu-item > a,
.rp-header__nav .current_page_item > a {
  color: #fff;
  background: var(--rp-primary);
}

.rp-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rp-header__cta { padding: 10px 20px; font-size: .82rem; }

.rp-header__burger {
  display: none;
  background: transparent; border: none;
  width: 44px; height: 44px; padding: 10px;
  cursor: pointer;
  flex-direction: column; justify-content: space-around;
}
.rp-header__burger span {
  display: block; height: 3px; background: var(--rp-accent);
  transition: all .25s;
  border-radius: 2px;
}

@media (max-width: 980px) {
  .rp-header__nav { display: none; }
  .rp-header__burger { display: flex; }
  .rp-header__cta { display: none; }
}

/* ---- 5. NAV DRAWER (mobile) ---- */
.rp-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(29,53,87,.55);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 200;
}
.rp-nav-overlay.is-open { opacity: 1; visibility: visible; }

.rp-nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--rp-surface);
  z-index: 210;
  padding: 76px 28px 32px;
  transform: translateX(100%);
  transition: transform .35s ease;
  box-shadow: -22px 0 50px rgba(29,53,87,.18);
  overflow-y: auto;
}
.rp-nav-drawer.is-open { transform: translateX(0); }
.rp-nav-drawer__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: var(--rp-line-2); border: none;
  font-size: 1.7rem; line-height: 1;
  color: var(--rp-accent);
  border-radius: 50%;
  cursor: pointer;
}
.rp-nav-list--drawer {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.rp-nav-list--drawer a {
  display: block;
  padding: 14px 16px;
  font-family: var(--rp-font-head);
  font-weight: 700; color: var(--rp-accent);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: var(--rp-radius-sm);
  border: 1px solid transparent;
}
.rp-nav-list--drawer a:hover {
  color: var(--rp-primary);
  background: rgba(230,57,70,0.07);
  border-color: var(--rp-line);
}

/* ---- 6. HERO mosaic-categories ---- */
.rp-hero {
  padding: 60px 0 80px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(230,57,70,0.13), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, rgba(29,53,87,0.08), transparent 60%),
    var(--rp-bg);
}
.rp-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.rp-hero__eyebrow {
  display: inline-block;
  font-family: var(--rp-font-head);
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--rp-primary);
  padding: 6px 14px;
  background: rgba(230,57,70,0.10);
  border-radius: var(--rp-radius-pill);
  margin-bottom: 18px;
}
.rp-hero__title {
  color: var(--rp-accent);
  margin: 0 0 18px;
}
.rp-hero__title em { color: var(--rp-primary); font-style: normal; }
.rp-hero__lede {
  font-size: 1.07rem; color: var(--rp-text-soft);
  max-width: 540px; margin: 0 0 28px;
}
.rp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.rp-hero__mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 540px;
}
.rp-hero-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--rp-radius);
  background: var(--rp-accent);
  display: block;
  text-decoration: none;
  color: #fff;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: var(--rp-shadow-1);
}
.rp-hero-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--rp-shadow-accent);
}
.rp-hero-tile--0 { grid-row: 1 / 3; grid-column: 1; }
.rp-hero-tile--1 { grid-row: 1; grid-column: 2; }
.rp-hero-tile--2 { grid-row: 1; grid-column: 3; }
.rp-hero-tile--3 { grid-row: 2; grid-column: 2; }
.rp-hero-tile--4 { grid-row: 2; grid-column: 3; }
.rp-hero-tile__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.rp-hero-tile:hover .rp-hero-tile__img { transform: scale(1.06); }
.rp-hero-tile__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,53,87,0) 30%, rgba(29,53,87,0.82) 100%);
}
.rp-hero-tile.no-img {
  background: linear-gradient(135deg, var(--rp-primary), var(--rp-accent));
}
.rp-hero-tile.no-img .rp-hero-tile__veil { background: linear-gradient(180deg, transparent, rgba(29,53,87,0.35)); }
.rp-hero-tile__body {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.rp-hero-tile__kicker {
  font-family: var(--rp-font-head);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--rp-primary-3);
}
.rp-hero-tile__name {
  font-family: var(--rp-font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.rp-hero-tile--0 .rp-hero-tile__name { font-size: 1.75rem; font-weight: 800; }

@media (max-width: 980px) {
  .rp-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .rp-hero__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 200px 200px;
    height: auto;
  }
  .rp-hero-tile--0 { grid-row: 1; grid-column: 1 / 3; }
  .rp-hero-tile--1 { grid-row: 2; grid-column: 1; }
  .rp-hero-tile--2 { grid-row: 2; grid-column: 2; }
  .rp-hero-tile--3 { grid-row: 3; grid-column: 1; }
  .rp-hero-tile--4 { grid-row: 3; grid-column: 2; }
}

/* ---- 7. SECTIONS ---- */
.rp-section { padding: 80px 0; }
.rp-section--alt { background: var(--rp-surface); }
.rp-section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.rp-section__title { margin: 0 0 14px; }
.rp-section__lede { color: var(--rp-text-soft); font-size: 1.05rem; margin: 0; }

/* ---- 8. CATEGORIES GRID ---- */
.rp-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .rp-categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rp-categories-grid { grid-template-columns: 1fr; } }

.rp-cat-card {
  position: relative;
  display: block;
  height: 240px;
  border-radius: var(--rp-radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--rp-primary) 0%, var(--rp-accent) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--rp-shadow-1);
  transition: transform .35s ease, box-shadow .35s ease;
}
.rp-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rp-shadow-accent);
  color: #fff;
}
.rp-cat-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.rp-cat-card:hover .rp-cat-card__img { transform: scale(1.08); }
.rp-cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,53,87,0) 30%, rgba(29,53,87,0.88) 100%);
}
.rp-cat-card.no-img .rp-cat-card__overlay {
  background: linear-gradient(160deg, rgba(230,57,70,0.10), rgba(29,53,87,0.35));
}
.rp-cat-card__body {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.rp-cat-card__label {
  font-family: var(--rp-font-head);
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--rp-primary-3);
}
.rp-cat-card__name {
  font-family: var(--rp-font-head);
  font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ---- 9. ARTICLES GRID ---- */
.rp-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .rp-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rp-articles-grid { grid-template-columns: 1fr; } }

.rp-card {
  background: var(--rp-surface);
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: var(--rp-shadow-1);
  display: flex; flex-direction: column;
  border: 1px solid var(--rp-line-2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.rp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rp-shadow-2);
}
.rp-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--rp-line-2);
}
.rp-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.rp-card:hover .rp-card__media img { transform: scale(1.05); }
.rp-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.rp-card__meta { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--rp-text-soft); margin-bottom: 10px; }
.rp-card__cat {
  display: inline-block;
  font-family: var(--rp-font-head);
  font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: #fff;
  background: var(--rp-primary);
  padding: 4px 10px;
  border-radius: var(--rp-radius-sm);
}
.rp-card__title { font-size: 1.2rem; margin: 0 0 10px; line-height: 1.3; text-transform: none; }
.rp-card__title a { color: var(--rp-accent); }
.rp-card__title a:hover { color: var(--rp-primary); }
.rp-card__excerpt { color: var(--rp-text-soft); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.rp-card__more {
  font-family: var(--rp-font-head);
  font-weight: 700; color: var(--rp-primary); font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.rp-card__more:hover { color: var(--rp-primary-2); }

/* ---- 10. NEWSLETTER STRIP ---- */
.rp-newsletter {
  padding: 90px 0;
  background: linear-gradient(110deg, var(--rp-accent) 0%, var(--rp-accent-2) 60%, var(--rp-primary) 100%);
  color: #fff;
  background-size: cover;
  background-position: center;
}
.rp-newsletter.has-bg { color: #fff; }
.rp-newsletter__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.rp-newsletter__eyebrow {
  display: inline-block;
  font-family: var(--rp-font-head);
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--rp-primary-3);
  padding: 6px 14px;
  background: rgba(255,255,255,0.10);
  border-radius: var(--rp-radius-pill);
  margin-bottom: 18px;
}
.rp-newsletter__title { color: #fff; margin: 0 0 14px; }
.rp-newsletter__lede { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin: 0 0 24px; }

/* ---- 11. TEAM TEASER (used by tools teaser) ---- */
.rp-team-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 920px) { .rp-team-teaser { grid-template-columns: 1fr; } }
.rp-team-teaser__media {
  border-radius: var(--rp-radius-lg);
  overflow: hidden;
  box-shadow: var(--rp-shadow-2);
  aspect-ratio: 4/3;
}
.rp-team-teaser__media img { width: 100%; height: 100%; object-fit: cover; }
.rp-team-teaser__eyebrow {
  display: inline-block;
  font-family: var(--rp-font-head);
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--rp-primary);
  margin-bottom: 14px;
}
.rp-team-teaser__body h2 { margin: 0 0 14px; }
.rp-team-teaser__body p { color: var(--rp-text-soft); margin: 0 0 22px; }

/* ---- 12. FOOTER (sport-bold 4 cols) ---- */
.rp-footer {
  position: relative;
  background: var(--rp-accent);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 30px;
  margin-top: 80px;
}
.rp-footer__lane {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--rp-primary) 0%, var(--rp-primary-3) 50%, var(--rp-primary) 100%);
}
.rp-footer__inner { display: flex; flex-direction: column; gap: 38px; }
.rp-footer__cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 920px) { .rp-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .rp-footer__cols { grid-template-columns: 1fr; } }

.rp-footer__col h4 {
  font-family: var(--rp-font-head);
  color: #fff;
  font-size: .92rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rp-primary);
  display: inline-block;
}
.rp-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rp-footer__col a {
  color: rgba(255,255,255,0.78);
  font-size: .92rem;
  transition: color .2s ease, padding-left .2s ease;
}
.rp-footer__col a:hover { color: var(--rp-primary-3); padding-left: 4px; }

.rp-footer__brand-mark {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
  margin-bottom: 16px;
}
.rp-footer__brand-mark img {
  background: #fff;
  border-radius: var(--rp-radius-sm);
  padding: 4px;
}
.rp-footer__brand-name {
  font-family: var(--rp-font-head);
  font-size: 1.4rem; font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.rp-footer__brand-pitch {
  font-size: .92rem; line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin: 0 0 22px;
}
.rp-footer__cta { display: inline-block; }

.rp-footer__social {
  display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap;
}
.rp-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.rp-footer__social a:hover {
  background: var(--rp-primary);
  transform: translateY(-2px);
  color: #fff;
  padding-left: 0;
}
.rp-footer__social svg {
  width: 18px; height: 18px;
  fill: currentColor;
  display: block;
}

.rp-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: .82rem;
  color: rgba(255,255,255,0.55);
}

/* ---- 13. PERSONA CARD (About page) ---- */
.rp-persona-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  background: var(--rp-surface);
  border-radius: var(--rp-radius);
  padding: 28px;
  margin: 30px 0;
  border: 1px solid var(--rp-line-2);
  box-shadow: var(--rp-shadow-1);
}
@media (max-width: 720px) { .rp-persona-card { grid-template-columns: 1fr; } }
.rp-persona-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--rp-radius);
}
.rp-persona-info h3 { margin: 0 0 4px; }
.rp-persona-role {
  font-family: var(--rp-font-head);
  color: var(--rp-primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  margin: 0 0 16px;
}

/* ---- 14. CONTACT PAGE INTRO ---- */
.rp-contact-intro {
  max-width: 760px; margin: 0 auto 36px;
  padding: 28px 32px;
  background: var(--rp-surface);
  border-left: 4px solid var(--rp-primary);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-1);
}
.rp-contact-intro p { margin: 0; color: var(--rp-text); font-size: 1.02rem; line-height: 1.75; }

/* ---- 15. TOOL PAGES ---- */
.rp-tool {
  max-width: 760px; margin: 0 auto 40px;
}
.rp-tool__intro { margin-bottom: 22px; }
.rp-tool__panel {
  background: var(--rp-surface);
  padding: 26px 28px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  margin-bottom: 18px;
  box-shadow: var(--rp-shadow-1);
}
.rp-tool__row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.rp-tool__row label { font-weight: 600; color: var(--rp-accent); min-width: 200px; }
.rp-tool__row input,
.rp-tool__row select,
.rp-tool__panel textarea {
  flex: 1; min-width: 140px;
  padding: 11px 14px;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-sm);
  font-family: var(--rp-font-body); font-size: 1rem;
  background: var(--rp-bg);
  color: var(--rp-text);
}
.rp-tool__panel textarea { width: 100%; min-height: 160px; resize: vertical; }

.rp-tool__result {
  background: linear-gradient(135deg, var(--rp-accent), var(--rp-accent-2));
  color: #fff;
  padding: 28px 30px;
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-2);
}
.rp-tool__result h3 { color: #fff; }
.rp-tool__big-number {
  text-align: center;
  font-family: var(--rp-font-head);
  font-size: 3.4rem; font-weight: 800;
  color: var(--rp-primary-3);
  line-height: 1.1;
  margin: 8px 0 18px;
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
}
.rp-tool__big-unit {
  font-family: var(--rp-font-head);
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rp-tool__metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.rp-tool__metric:last-child { border-bottom: none; }
.rp-tool__metric-label { color: rgba(255,255,255,0.75); font-size: .92rem; }
.rp-tool__metric-value {
  color: #fff; font-weight: 700; font-size: 1.05rem;
  font-family: var(--rp-font-head);
}
.rp-tool__advice {
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(230,57,70,0.18);
  border-left: 3px solid var(--rp-primary-3);
  border-radius: 6px;
  color: rgba(255,255,255,0.92);
  font-size: .95rem;
  line-height: 1.6;
}

button.rp-quiz-opt {
  display: block; width: 100%;
  text-align: left;
  padding: 12px 16px;
  margin-bottom: 6px;
  background: var(--rp-bg);
  border: 1.5px solid var(--rp-line);
  border-radius: var(--rp-radius-sm);
  font-family: var(--rp-font-body); font-size: .98rem;
  color: var(--rp-text);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
button.rp-quiz-opt:hover { border-color: var(--rp-primary); background: rgba(230,57,70,0.04); }
button.rp-quiz-opt.is-selected {
  background: rgba(230,57,70,0.1);
  border-color: var(--rp-primary);
  font-weight: 600;
}
button.rp-quiz-opt.is-correct { background: rgba(34,154,90,0.15); border-color: #229a5a; color: #166c40; }
button.rp-quiz-opt.is-wrong { background: rgba(217,47,47,0.10); border-color: #b81e1e; color: #8c1818; }
button.rp-quiz-opt:disabled { cursor: default; }

/* ---- 16. CATEGORY PAGE INTRO ---- */
.rp-cat-intro {
  background: var(--rp-surface);
  padding: 32px 34px;
  border-radius: var(--rp-radius);
  border-left: 4px solid var(--rp-primary);
  margin: 0 0 40px;
  box-shadow: var(--rp-shadow-1);
}
.rp-cat-intro p { margin: 0; color: var(--rp-text); font-size: 1rem; line-height: 1.75; }

/* ---- 17. CALLBACK FLOATING WIDGET (CTO animation entry) ---- */
.rp-callback-widget {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--rp-primary); color: #fff;
  width: 60px; height: 60px; border-radius: 50%;
  font-weight: 800; cursor: pointer; z-index: 999;
  box-shadow: 0 12px 28px rgba(230,57,70,0.35);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.6rem;
  transition: transform .35s ease, background .25s ease;
}
.rp-callback-widget:hover { background: var(--rp-accent); transform: rotate(20deg) scale(1.06); color: #fff; }

/* ---- 18. PRINT ---- */
@media print {
  .rp-header, .rp-footer, .rp-callback-widget, .rp-newsletter, .rp-hero__mosaic { display: none !important; }
  body.rp-body { background: #fff; color: #000; }
}


/* Mouse effect : nav_hover_arrow_down */
@media (hover: hover) {
  .rp-header__nav a, .rp-nav-list a {
    position: relative;
    transition: color .25s ease, padding-bottom .25s ease;
  }
  .rp-header__nav a::after, .rp-nav-list a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -4px;
    width: 12px; height: 12px;
    background: var(--rp-primary);
    transform: translate(-50%, -10px) rotate(45deg);
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
  }
  .rp-header__nav a:hover::after, .rp-nav-list a:hover::after {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
  }
}
@media (hover: none) {
  .rp-header__nav a::after, .rp-nav-list a::after { display: none; }
}
