:root {
  --r4-cream: #eef3ef;
  --r4-glass: rgba(241, 247, 243, 0.72);
  --r4-glass-strong: rgba(248, 251, 249, 0.86);
  --r4-glass-deep: rgba(219, 234, 225, 0.76);
  --r4-border: rgba(255, 255, 255, 0.72);
  --r4-line: rgba(19, 67, 48, 0.12);
  --r4-ink: #15221c;
  --r4-muted: #53675e;
  --r4-green-950: #05271d;
  --r4-green-900: #073a29;
  --r4-green-800: #0a5137;
  --r4-green-700: #0f6b47;
  --r4-gold-600: #bd7f17;
  --r4-gold-500: #d89e32;
  --r4-gold-400: #efbe5a;
  --r4-shadow: 0 12px 28px rgba(17, 55, 39, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  --r4-shadow-deep: 0 22px 46px rgba(8, 42, 29, 0.21), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  --r4-radius-lg: 16px;
  --r4-radius-md: 12px;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #d7e0dc; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--r4-ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #d7e0dc;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; border: 0; }

.r4-category-app {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 47px;
  gap: 10px;
  padding: 13px 16px 14px;
  overflow: hidden;
}
.r4-category-app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(rgba(220, 234, 229, 0.78), rgba(224, 232, 222, 0.9)), url("hero.jpg") center 58% / cover no-repeat;
}
.r4-category-app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 72% 15%, rgba(255, 250, 230, 0.38), transparent 35%);
}

.r4-glass {
  background: linear-gradient(145deg, rgba(250, 252, 251, 0.77), rgba(226, 239, 232, 0.62));
  border: 1px solid var(--r4-border);
  box-shadow: var(--r4-shadow);
  backdrop-filter: blur(15px) saturate(1.08);
  -webkit-backdrop-filter: blur(15px) saturate(1.08);
}

.r4-site-header {
  width: min(1504px, 100%);
  height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 20;
}
.r4-official-logo {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  padding: 0 9px 0 0;
}
.r4-logo-medal {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.2));
}
.r4-logo-copy { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.r4-logo-wordmark { width: 136px; height: 22px; object-fit: fill; mix-blend-mode: multiply; }
.r4-logo-copy small { margin-top: 3px; color: #26352e; font-size: 10.5px; font-weight: 680; }

.r4-top-nav {
  min-width: 0;
  height: 57px;
  padding: 6px 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.r4-top-link {
  min-width: 0;
  height: 43px;
  padding: 0 13px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: #23312b;
  font-size: 13px;
  font-weight: 740;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.r4-top-link::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(10, 81, 55, 0.32); }
.r4-top-link[disabled] { opacity: 0.7; cursor: default; }
.r4-top-link.active {
  color: var(--r4-green-800);
  background: rgba(247, 251, 248, 0.92);
  box-shadow: 0 4px 10px rgba(17, 55, 39, 0.15), inset 0 0 0 1px rgba(12, 81, 55, 0.12);
}
.r4-top-link.active::before { background: var(--r4-gold-500); box-shadow: 0 0 0 3px rgba(216, 158, 50, 0.14); }
.r4-top-actions {
  height: 57px;
  padding: 6px 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.r4-header-action {
  height: 39px;
  padding: 0 15px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 820;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}
.r4-header-action.login { background: linear-gradient(180deg, #17865a, #075536); }
.r4-header-action.register { background: linear-gradient(180deg, #efba4e, #ce8b1f); }
.r4-mobile-categories { display: none; }

.r4-workspace {
  width: min(1504px, 100%);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 151px minmax(0, 1fr);
  gap: 12px;
}
.r4-left-rail {
  min-height: 0;
  padding: 12px 10px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}
.r4-side-nav { display: flex; flex-direction: column; gap: 6px; }
.r4-side-link {
  width: 100%;
  min-height: 45px;
  padding: 0 11px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #23312b;
  font-size: 12px;
  font-weight: 730;
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.r4-side-symbol {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--r4-green-800);
  background: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}
.r4-side-link.active {
  color: var(--r4-green-800);
  background: rgba(247, 252, 249, 0.91);
  box-shadow: 0 4px 11px rgba(15, 75, 52, 0.17), inset 0 0 0 1px rgba(15, 107, 71, 0.18);
}
.r4-side-link[disabled] { opacity: 0.72; cursor: default; }
.r4-rail-status {
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid var(--r4-line);
  color: var(--r4-green-800);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.r4-rail-status span { display: block; margin: 0 auto 7px; width: 9px; height: 9px; border-radius: 50%; background: #15915f; box-shadow: 0 0 0 4px rgba(21, 145, 95, 0.12); }

.r4-cat-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 34px minmax(250px, 1fr) auto 50px;
  gap: 10px;
}
.r4-cat-back {
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  color: var(--r4-green-800);
  font-size: 12px;
  font-weight: 820;
}
.r4-cat-hero {
  min-width: 0;
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(440px, 1.35fr);
  gap: 10px;
}
.r4-cat-copy,
.r4-cat-photo-wrap,
.r4-service-card,
.r4-cat-cta {
  border: 1px solid var(--r4-border);
  box-shadow: var(--r4-shadow-deep);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}
.r4-cat-copy {
  min-width: 0;
  padding: clamp(22px, 3vw, 42px);
  border-radius: var(--r4-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(246, 250, 247, 0.87), rgba(209, 229, 218, 0.75));
  position: relative;
}
.r4-cat-copy::after {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  right: -54px;
  bottom: -62px;
  border: 1px solid rgba(189, 127, 23, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(189, 127, 23, 0.04), 0 0 0 42px rgba(15, 107, 71, 0.035);
  pointer-events: none;
  display: none;
}
.r4-eyebrow {
  color: var(--r4-gold-600);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.r4-cat-copy h1 {
  margin: 8px 0 9px;
  color: var(--r4-green-950);
  font-size: clamp(44px, 4.4vw, 70px);
  font-weight: 880;
  line-height: 0.96;
  letter-spacing: -0.052em;
}
.r4-cat-copy h2 {
  max-width: 28ch;
  margin: 0 0 10px;
  color: var(--r4-green-700);
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.22;
}
.r4-cat-copy p {
  max-width: 51ch;
  margin: 0;
  color: var(--r4-muted);
  font-size: clamp(13px, 0.98vw, 16px);
  line-height: 1.48;
}
.r4-cat-photo-wrap {
  min-width: 0;
  min-height: 250px;
  border-radius: var(--r4-radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--r4-green-900);
}
.r4-cat-photo {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.r4-cat-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -52px 65px rgba(3, 34, 24, 0.11);
}
.r4-disclosure {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid rgba(239, 190, 90, 0.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 39, 29, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  font-size: 10px;
  font-weight: 780;
}

.r4-services {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.r4-service-card {
  min-width: 0;
  min-height: 118px;
  padding: 16px 17px 15px;
  border-radius: var(--r4-radius-md);
  background: linear-gradient(145deg, rgba(246, 250, 247, 0.82), rgba(218, 232, 224, 0.69));
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.r4-service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--r4-green-700), var(--r4-gold-500));
  opacity: 0.76;
}
.r4-service-card h3 { margin: 0 0 7px; color: var(--r4-green-950); font-size: 14px; line-height: 1.2; }
.r4-service-card p { margin: 0; color: var(--r4-muted); font-size: 11.5px; line-height: 1.45; }

.r4-cat-cta {
  min-width: 0;
  min-height: 50px;
  padding: 5px;
  border-radius: var(--r4-radius-md);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: linear-gradient(145deg, rgba(237, 246, 240, 0.84), rgba(213, 229, 220, 0.76));
}
.r4-cat-button {
  min-height: 40px;
  padding: 0 22px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #168456, #075536);
  box-shadow: 0 6px 15px rgba(7, 85, 54, 0.28);
  font-size: 12px;
  font-weight: 830;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.r4-trust-bar {
  width: min(1504px, 100%);
  min-height: 47px;
  margin: 0 auto;
  padding: 0 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 18px;
  color: #fff;
  background: linear-gradient(180deg, #075332, #013e25);
  border: 1px solid rgba(239, 190, 90, 0.22);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.r4-trust-bar > span { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.r4-trust-icon { color: var(--r4-gold-400); font-size: 12px; }
.r4-swiss-mini { width: 17px; height: 17px; border-radius: 4px; display: grid; place-items: center; color: #fff; background: #d52e29; font-size: 13px; font-weight: 900; }

@media (hover: hover) {
  .r4-top-link:not([disabled]):hover,
  .r4-side-link:not([disabled]):hover { background: rgba(255, 255, 255, 0.58); transform: translateY(-1px); }
  .r4-service-card:hover { transform: translateY(-2px); background: rgba(244, 250, 246, 0.9); box-shadow: 0 18px 34px rgba(17, 55, 39, 0.2); }
  .r4-cat-button:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(7, 85, 54, 0.34); }
}
:focus-visible { outline: 3px solid rgba(216, 158, 50, 0.95); outline-offset: 2px; }

@media (max-width: 1220px) {
  .r4-site-header { grid-template-columns: 205px minmax(0, 1fr) auto; gap: 8px; }
  .r4-logo-medal { width: 56px; height: 56px; }
  .r4-logo-wordmark { width: 120px; height: 20px; }
  .r4-top-link { padding: 0 9px; font-size: 11.5px; }
  .r4-header-action { padding: 0 11px; font-size: 11.5px; }
  .r4-workspace { grid-template-columns: 133px minmax(0, 1fr); }
  .r4-side-link { min-height: 42px; padding: 0 8px; font-size: 10.5px; gap: 6px; }
  .r4-cat-hero { grid-template-columns: minmax(300px, 0.8fr) minmax(390px, 1.3fr); }
  .r4-cat-copy h1 { font-size: clamp(39px, 4.2vw, 58px); }
  .r4-service-card { padding: 14px; }
}

@media (max-width: 980px) {
  .r4-top-nav .r4-top-link[disabled] { display: none; }
  .r4-top-nav { justify-content: center; }
  .r4-top-actions .register { display: none; }
  .r4-workspace { grid-template-columns: 118px minmax(0, 1fr); }
  .r4-side-link { min-height: 40px; }
  .r4-side-link b { font-size: 10px; }
  .r4-cat-hero { grid-template-columns: minmax(270px, 0.78fr) minmax(330px, 1.22fr); }
  .r4-cat-copy { padding: 22px; }
  .r4-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r4-service-card { min-height: 104px; }
}

@media (max-width: 820px) {
  .r4-category-app { grid-template-rows: 64px auto 47px; overflow: visible; }
  .r4-site-header { grid-template-columns: 198px minmax(0, 1fr) auto; }
  .r4-top-nav { justify-content: flex-end; }
  .r4-top-nav .r4-top-link:not(.active) { display: none; }
  .r4-top-actions { display: none; }
  .r4-workspace { display: block; }
  .r4-left-rail { display: none; }
  .r4-cat-main { grid-template-rows: 34px auto auto 50px; }
  .r4-cat-hero { min-height: 330px; grid-template-columns: minmax(260px, 0.78fr) minmax(330px, 1.22fr); }
  .r4-cat-copy h1 { font-size: clamp(38px, 7vw, 55px); }
}

@media (max-width: 600px) {
  .r4-category-app { grid-template-rows: 58px auto auto; gap: 8px; padding: 8px; }
  .r4-category-app::after { display: none; }
  .r4-site-header {
    height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 0 8px 0 0;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(250, 252, 251, 0.84), rgba(226, 239, 232, 0.72));
    border: 1px solid var(--r4-border);
    box-shadow: var(--r4-shadow);
    backdrop-filter: blur(15px);
  }
  .r4-official-logo { height: 56px; gap: 6px; padding: 0; }
  .r4-logo-medal { width: 54px; height: 54px; }
  .r4-logo-wordmark { width: 108px; height: 18px; }
  .r4-logo-copy small { font-size: 8px; }
  .r4-top-nav { display: none; }
  .r4-mobile-categories {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    color: var(--r4-green-800);
    background: rgba(255, 255, 255, 0.64);
    font-size: 10px;
    font-weight: 820;
  }
  .r4-cat-main { grid-template-rows: 40px auto auto 52px; gap: 8px; }
  .r4-cat-back { min-height: 40px; padding: 0 11px; font-size: 10.5px; }
  .r4-cat-hero { min-height: 0; grid-template-columns: 1fr; gap: 8px; }
  .r4-cat-copy { min-height: 224px; padding: 22px 18px; border-radius: 14px; }
  .r4-cat-copy h1 { margin: 7px 0 8px; font-size: clamp(39px, 13.5vw, 54px); }
  .r4-cat-copy h2 { margin-bottom: 8px; font-size: 18px; }
  .r4-cat-copy p { font-size: 12.5px; line-height: 1.42; }
  .r4-cat-photo-wrap, .r4-cat-photo { min-height: 215px; height: 215px; border-radius: 14px; }
  .r4-disclosure { left: 10px; bottom: 10px; padding: 6px 9px; font-size: 9px; }
  .r4-services { grid-template-columns: 1fr; gap: 8px; }
  .r4-service-card { min-height: 0; padding: 14px 15px 13px; border-radius: 11px; }
  .r4-service-card h3 { font-size: 13px; }
  .r4-service-card p { font-size: 11.5px; }
  .r4-cat-cta { min-height: 52px; padding: 5px; }
  .r4-cat-button { width: 100%; min-height: 42px; }
  .r4-trust-bar { min-height: 44px; padding: 7px 10px; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
  .r4-trust-bar > span { font-size: 8.5px; }
  .r4-trust-bar > span:nth-child(4), .r4-trust-bar > span:nth-child(5) { display: none; }
}

@media (max-width: 370px) {
  .r4-logo-medal { width: 50px; height: 50px; }
  .r4-logo-wordmark { width: 99px; }
  .r4-logo-copy small { font-size: 7.5px; }
  .r4-mobile-categories { padding: 0 8px; }
  .r4-cat-copy { padding: 20px 16px; }
  .r4-cat-copy h1 { font-size: 40px; }
}

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