.rcx {
  --rcx-width: 1280px;
  --rcx-pad: clamp(16px, 4vw, 32px);
  --rcx-bg: #f4f6f9;
  --rcx-card: #fff;
  --rcx-text: #14171c;
  --rcx-muted: #4c5666;
  --rcx-border: #dbe1e9;
  --rcx-link: #ad2118;
  background: var(--rcx-bg);
  color: var(--rcx-text);
  padding-bottom: clamp(38px, 5vw, 76px);
  font: inherit;
}
html:is([data-theme="dark"], [data-rx-theme="dark"]) .rcx {
  --rcx-bg: #11161e;
  --rcx-card: #1b222d;
  --rcx-text: #f4f6f9;
  --rcx-muted: #b5bfce;
  --rcx-border: #374151;
  --rcx-link: #ff9a8d;
}
.rcx * { box-sizing: border-box; }
.rcx [hidden] { display: none !important; }
.redico-cases-catalog-only :is(.rd-footer-enquiry, #rx-modal, #rx-common-lead-template) { display: none !important; }
.rcx .rcx-wrap {
  width: min(100% - var(--rcx-pad) * 2, var(--rcx-width));
  margin-inline: auto;
}
.rcx a:not(.rcx-button) { color: var(--rcx-link); text-decoration: underline; text-underline-offset: .2em; }
.rcx :is(a,button,select,input,textarea,summary):focus-visible { outline: 3px solid var(--rcx-link); outline-offset: 3px; }
.rcx .rcx-hero {
  --rcx-link: #ff9a8d;
  background: radial-gradient(ellipse at 78% 10%, #2b3442 0%, #171e29 46%, #0d121a 100%);
  color: #f7f9fb;
  padding: 24px 0 clamp(40px, 6vw, 82px);
}
.rcx-crumb { display: flex; flex-wrap: wrap; gap: .55rem; font-size: .86rem; color: #c7d0dc; margin-bottom: clamp(24px, 4vw, 50px); }
.rcx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 5vw, 68px); }
.rcx-kicker { color: var(--rcx-link); font-size: .77rem; font-weight: 750; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; margin: 0 0 12px; }
.rcx .rcx-intro h1 { color: #f7f9fb; font-size: clamp(2.2rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.055em; margin: 0; font-weight: 800; }
.rcx h1 em { color: #ff7d71; font-style: normal; }
.rcx .rcx-lead { color: #d4dce7; max-width: 55ch; font-size: clamp(1rem, 1.65vw, 1.22rem); line-height: 1.55; margin: 21px 0; }
.rcx-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.rcx .rcx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 12px 17px;
  border-radius: 12px;
  background: #b62419;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 750;
  line-height: 1.3;
}
.rcx .rcx-button:hover { background: #9b1e15; color: #fff; }
.rcx-hero-summary { min-width: 0; padding: 20px 0 0; border-top: 2px solid #df5145; }
.rcx-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.rcx-hero-stats div { min-width: 0; display: flex; flex-direction: column-reverse; gap: 7px; padding: 0 9px 0 14px; border-left: 1px solid #546172; }
.rcx-hero-stats div:first-child { border: 0; padding-left: 0; }
.rcx-hero-stats dt { font-size: .81rem; line-height: 1.35; color: #d5dce7; }
.rcx-hero-stats dd { margin: 0; font-size: clamp(1.8rem, 4vw, 3.3rem); letter-spacing: -.045em; line-height: 1; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.rcx-catalog { padding-top: clamp(36px, 6vw, 72px); scroll-margin-top: 104px; }
.rcx-section-head { max-width: 76ch; margin-bottom: 22px; }
.rcx :is(.rcx-section-head,.rcx-next-panel) h2 { color: var(--rcx-text); font-size: clamp(1.75rem, 3.8vw, 2.9rem); letter-spacing: -.035em; line-height: 1.12; margin: 0 0 12px; }
.rcx :is(.rcx-section-head,.rcx-next-panel) p:not(.rcx-kicker) { color: var(--rcx-muted); line-height: 1.6; margin: 0; }
.rcx-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  border: 1px solid var(--rcx-border);
  border-radius: 14px;
  background: var(--rcx-card);
  padding: clamp(14px, 2vw, 23px);
}
.rcx-filters label { display: grid; gap: 6px; font-size: .92rem; font-weight: 700; min-width: 0; }
.rcx-filters :is(select,button) {
  min-height: 46px;
  font: inherit;
  color: var(--rcx-text);
  border: 1px solid var(--rcx-border);
  border-radius: 9px;
  background: var(--rcx-bg);
  padding: 8px 12px;
  width: 100%;
}
.rcx-filters button { cursor: pointer; font-weight: 700; }
.rcx-filters button:hover { border-color: var(--rcx-link); }
.rcx-count { color: var(--rcx-muted); font-size: .92rem; margin: 18px 0 12px; }
.rcx-empty { padding: 20px; border: 1px dashed var(--rcx-border); border-radius: 12px; }
.rcx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.rcx-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--rcx-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--rcx-card);
  color: var(--rcx-text);
  transition: border-color .2s, box-shadow .2s;
  scroll-margin-top: 120px;
}
@media (hover: hover) {
  .rcx-card:hover { border-color: var(--rcx-link); box-shadow: 0 6px 18px #0002; }
}
.rcx-brand { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; min-height: 46px; margin: 0 0 16px; }
.rcx-brand-copy { flex: 1 1 120px; min-width: 0; }
.rcx-role { display: block; color: var(--rcx-muted); font-size: .71rem; letter-spacing: .055em; text-transform: uppercase; margin-bottom: 2px; }
.rcx-logo { flex: 0 0 100px; background: #fff; border: 1px solid #dbe1e9; border-radius: 8px; padding: 6px 7px; width: 100px; height: 42px; display: grid; place-items: center; }
.rcx .rcx-logo-dark { background: #1b222d; border-color: #3b4655; }
.rcx .rcx-logo img { display: block; width: 100%; height: 28px; object-fit: contain; }
.rcx-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(15px, 1.8vw, 24px); }
.rcx-card-meta { display: flex; justify-content: space-between; gap: 9px; color: var(--rcx-muted); font-size: .76rem; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rcx-border); line-height: 1.4; }
.rcx-card-meta span:last-child { white-space: nowrap; }
.rcx .rcx-card h3 { font-size: clamp(1.08rem, 1.55vw, 1.32rem); color: var(--rcx-text); line-height: 1.27; letter-spacing: -.02em; margin: 0 0 9px; }
.rcx-company { font-weight: 750; color: var(--rcx-text); line-height: 1.3; font-size: .93rem; margin: 0; overflow-wrap: anywhere; }
.rcx-result { color: var(--rcx-muted); margin: 0 0 14px; line-height: 1.57; font-size: .92rem; }
.rcx-company-profile { padding: 0 0 10px; margin: 0 0 13px; border-bottom: 1px solid var(--rcx-border); font-size: .86rem; }
.rcx-company-profile summary { padding: 6px 0; cursor: pointer; color: var(--rcx-text); font-weight: 720; }
.rcx-company-profile p { line-height: 1.54; color: var(--rcx-muted); margin: 2px 0 7px; }
.rcx .rcx-case-docs { display: grid; gap: 7px; margin: auto 0 0; padding: 0; list-style: none; }
.rcx-case-docs > li { background: var(--rcx-bg); border-radius: 8px; padding: 7px 9px; color: var(--rcx-text); font-size: .76rem; font-weight: 720; line-height: 1.4; }
.rcx-next { margin-top: clamp(35px, 6vw, 72px); }
.rcx-next-panel { display: flex; align-items: center; gap: 18px 40px; justify-content: space-between; padding: clamp(18px, 4vw, 44px); border-radius: 19px; border: 1px solid var(--rcx-border); background: var(--rcx-card); }
.rcx-next-panel p { max-width: 66ch; }
.rcx-next-panel .rcx-button { flex-shrink: 0; }
.rcx-home-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px 20px; }
@keyframes rcx-in { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .rcx-intro > * { animation: rcx-in .36s ease-out backwards; }
  .rcx-intro h1 { animation-delay: .035s; }
  .rcx-lead { animation-delay: .07s; }
  .rcx-hero-actions { animation-delay: .1s; }
  .rcx-hero-summary { animation: rcx-in .36s .12s ease-out backwards; }
  .rcx-card.rcx-in, .rcx-next-panel.rcx-in { animation: rcx-in .32s ease-out both; animation-delay: var(--rcx-delay, 0s); }
}
@media (max-width: 1030px) { .rcx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 750px) {
  .rcx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .rcx-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcx-filters button { grid-column: 1 / -1; }
  .rcx-next-panel { align-items: flex-start; flex-direction: column; }
  .rcx-home-actions { justify-content: flex-start; }
}
@media (max-width: 530px) {
  .rcx-grid, .rcx-filters { grid-template-columns: minmax(0, 1fr); }
  .rcx .rcx-hero { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .rcx-card { transition: none; } }
