:root {
  --rih-ink: #2d4150;
  --rih-muted: #748087;
  --rih-line: #e5eaeb;
  --rih-teal: #12a293;
  --rih-teal-soft: #edf8f6;
  --rih-orange: #ff9838;
  --rih-panel: #f4f5f5;
}

body.rih-shell-ready:not(.rih-has-native-header) {
  padding-top: 72px;
}

body.rih-shell-ready > .nav,
body.rih-shell-ready > .footer {
  display: none !important;
}

.rih-site-header,
.rih-site-footer {
  box-sizing: border-box;
  color: var(--rih-ink);
  font-family: Arial, sans-serif;
}

.rih-site-header *,
.rih-site-footer * {
  box-sizing: border-box;
}

.rih-site-header [hidden],
.rih-site-footer [hidden] {
  display: none !important;
}

.rih-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100001;
  min-height: 72px;
  background: #fff;
  border-bottom: 1px solid rgba(45, 65, 80, .08);
}

.rih-shell-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1380px, calc(100% - 44px));
  height: 72px;
  margin: 0 auto;
}

.rih-logo {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.rih-logo img {
  display: block;
  width: 26px;
  height: 41px;
}

.rih-primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0 auto;
}

.rih-primary-nav a {
  padding: 5px 15px;
  border-right: 1px solid #e4e8e9;
  color: var(--rih-ink) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.rih-primary-nav a:last-child {
  border-right: 0;
}

.rih-primary-nav a:hover,
.rih-primary-nav a[aria-current="page"] {
  color: var(--rih-orange) !important;
}

.rih-nav-trigger span,
.rih-language-toggle span {
  display: inline-block;
  margin-left: 4px;
  transition: transform .18s ease;
}

.rih-nav-trigger[aria-expanded="true"] span,
.rih-language-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.rih-auth {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
}

.rih-login {
  color: var(--rih-ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.rih-login:hover {
  color: var(--rih-teal) !important;
}

.rih-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 19px;
  border-radius: 24px;
  background: var(--rih-teal);
  box-shadow: 0 4px 12px rgba(18, 162, 147, .14);
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}

.rih-button:hover {
  transform: translateY(-1px);
  background: #0b8d80;
}

.rih-language {
  position: relative;
}

.rih-language-toggle,
.rih-mobile-products {
  border: 0;
  background: transparent;
  color: var(--rih-ink);
  font: inherit;
  cursor: pointer;
}

.rih-language-toggle {
  padding: 9px 4px;
  font-size: 14px;
}

.rih-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: -10px;
  min-width: 96px;
  padding: 7px;
  border: 1px solid var(--rih-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(45, 65, 80, .14);
}

.rih-language-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--rih-ink);
  font-size: 13px;
  text-decoration: none;
}

.rih-language-menu a:hover {
  background: var(--rih-teal-soft);
  color: var(--rih-teal);
}

.rih-product-menu {
  position: absolute;
  inset: 100% 0 auto;
  padding: 24px 22px 28px;
  border-top: 1px solid var(--rih-line);
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 18px 38px rgba(45, 65, 80, .12);
}

.rih-product-menu-inner {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(0, 3fr);
  gap: 24px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.rih-menu-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 13px;
  padding: 8px 12px;
}

.rih-menu-intro small,
.rih-footer-contact > small {
  color: var(--rih-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.rih-menu-intro strong {
  max-width: 230px;
  font-size: 19px;
  line-height: 1.25;
}

.rih-menu-intro > a {
  color: var(--rih-teal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.rih-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rih-product-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 13px 14px;
  border: 1px solid #edf0f1;
  border-radius: 15px;
  background: #fff;
  color: var(--rih-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rih-product-link:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 162, 147, .45);
  box-shadow: 0 10px 24px rgba(45, 65, 80, .08);
}

.rih-product-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--rih-teal-soft);
  color: var(--rih-teal);
  font-size: 20px;
  font-weight: 700;
}

.rih-product-copy {
  display: grid;
  gap: 5px;
}

.rih-product-copy strong {
  font-size: 14px;
  line-height: 1.25;
}

.rih-product-copy small {
  color: var(--rih-muted);
  font-size: 12px;
  line-height: 1.35;
}

.rih-product-arrow {
  color: var(--rih-orange);
  font-size: 19px;
}

.rih-menu-toggle,
.rih-mobile-nav {
  display: none;
}

.rih-site-footer {
  margin-top: 0;
  padding: 50px 0 20px;
  border-top: 1px solid var(--rih-line);
  background: #fff;
}

.rih-footer-layout,
.rih-footer-bottom {
  width: min(1296px, calc(100% - 64px));
  margin: 0 auto;
}

.rih-footer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.rih-footer-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rih-footer-logo img {
  display: block;
  width: 126px;
  height: 45px;
}

.rih-footer-main > p {
  max-width: 510px;
  margin: 24px 0 20px;
  color: var(--rih-muted);
  font-size: 14px;
  line-height: 1.55;
}

.rih-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 28px;
  width: min(520px, 100%);
}

.rih-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.rih-footer-nav a {
  color: var(--rih-muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.rih-footer-nav a:hover {
  color: var(--rih-teal);
}

.rih-footer-contact {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 34px 36px;
  border-radius: 30px;
  background: var(--rih-panel);
}

.rih-footer-email {
  color: var(--rih-ink);
  font-size: clamp(26px, 3vw, 43px);
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.rih-footer-address {
  color: var(--rih-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rih-social-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.rih-social-links a {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 162, 147, .15);
  border-radius: 50%;
  background: #fff;
  color: var(--rih-teal);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}

.rih-social-links a span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.rih-social-links a:hover {
  transform: translateY(-2px);
  background: var(--rih-teal-soft);
}

.rih-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid var(--rih-line);
  color: #9aa3a7;
  font-size: 12px;
}

.rih-footer-bottom a {
  color: #9aa3a7;
  text-decoration: none;
}

.rih-footer-bottom a:hover {
  color: var(--rih-teal);
}

.rih-mobile-nav {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 72px);
  overflow: auto;
  padding: 12px 22px 24px;
  border-bottom: 1px solid var(--rih-line);
  background: #fff;
  box-shadow: 0 18px 30px rgba(45, 65, 80, .1);
}

.rih-mobile-nav[hidden] {
  display: none !important;
}

.rih-mobile-nav:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.rih-mobile-nav a,
.rih-mobile-products {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--rih-line);
  color: var(--rih-ink);
  font-size: 14px;
  text-decoration: none;
  text-align: left;
}

.rih-mobile-products {
  width: 100%;
  font-weight: 700;
}

.rih-mobile-product-list:not([hidden]) {
  display: grid;
  grid-column: 1 / -1;
  padding: 4px 0 8px 14px;
}

.rih-mobile-nav a:hover {
  color: var(--rih-teal);
}

.rih-menu-toggle {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--rih-line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.rih-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--rih-ink);
}

.rih-site-header a:focus-visible,
.rih-site-header button:focus-visible,
.rih-site-footer a:focus-visible {
  outline: 2px solid var(--rih-orange);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .rih-shell-inner {
    gap: 10px;
    width: calc(100% - 32px);
  }

  .rih-primary-nav a {
    padding-inline: 10px;
    font-size: 13px !important;
  }

  .rih-auth {
    gap: 10px;
  }
}

@media (max-width: 1080px) {
  .rih-primary-nav {
    display: none;
  }

  .rih-shell-inner {
    justify-content: space-between;
  }

  .rih-auth {
    margin-left: auto;
  }

  .rih-menu-toggle {
    display: flex;
    margin-left: 4px;
  }

  .rih-product-menu {
    display: none !important;
  }
}

@media (max-width: 700px) {
  body.rih-shell-ready:not(.rih-has-native-header) {
    padding-top: 64px;
  }

  .rih-site-header {
    min-height: 64px;
  }

  .rih-shell-inner {
    height: 64px;
    width: calc(100% - 26px);
  }

  .rih-login,
  .rih-language {
    display: none;
  }

  .rih-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px !important;
  }

  .rih-mobile-nav {
    top: 64px;
    max-height: calc(100dvh - 64px);
    padding-inline: 16px;
  }

  .rih-footer-layout,
  .rih-footer-bottom {
    width: calc(100% - 32px);
  }

  .rih-footer-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rih-footer-contact {
    min-height: 230px;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .rih-footer-email {
    font-size: clamp(24px, 7vw, 34px);
  }

  .rih-footer-links {
    gap: 18px;
  }

  .rih-footer-nav {
    gap: 11px;
  }

  .rih-footer-bottom {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rih-site-header *,
  .rih-site-footer * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
