.riko-home-premium {
  --rhp-ink: #17365b;
  --rhp-ink-soft: #46627c;
  --rhp-muted: #6d8397;
  --rhp-blue: #2f82bd;
  --rhp-blue-deep: #20364f;
  --rhp-blue-dark: #06294c;
  --rhp-cyan: #2b96c8;
  --rhp-green: #99cc00;
  --rhp-orange: #f18742;
  --rhp-line: #dbe8f2;
  --rhp-cloud: #eef7fb;
  --rhp-paper: #fbfdff;
  --rhp-white: #fff;
  --rhp-radius: 22px;
  --rhp-radius-sm: 14px;
  --rhp-shadow: 0 14px 34px rgba(23, 54, 91, 0.085);
  --rhp-shadow-soft: 0 7px 18px rgba(23, 54, 91, 0.06);
  box-sizing: border-box;
  width: calc(100% - 28px);
  max-width: 1500px;
  margin: 0 auto 44px;
  padding: 0;
  color: var(--rhp-ink);
  font-family: inherit;
  contain: layout paint;
}

.riko-home-premium *,
.riko-home-premium *:before,
.riko-home-premium *:after {
  box-sizing: border-box;
}

.riko-home-premium a {
  color: inherit;
  text-decoration: none;
}

.riko-home-premium img {
  display: block;
  max-width: 100%;
}

.rhp-section {
  margin-top: 22px;
  contain: layout paint;
}

.rhp-platforms {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid rgba(177, 215, 235, 0.8);
  border-radius: var(--rhp-radius);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 252, 0.95)),
    var(--rhp-paper);
  box-shadow: var(--rhp-shadow-soft);
}

.rhp-platforms__lead {
  padding-left: 4px;
}

.rhp-platforms__lead strong {
  display: block;
  color: var(--rhp-blue-deep);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.rhp-platforms__lead span {
  display: block;
  margin-top: 4px;
  color: var(--rhp-muted);
  font-size: 12px;
  line-height: 1.4;
}

.rhp-platforms__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.rhp-platforms__links a,
.rhp-quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(47, 130, 189, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #245d84;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rhp-platforms__links a:hover,
.rhp-platforms__links a:focus,
.rhp-quick-links a:hover,
.rhp-quick-links a:focus {
  border-color: var(--rhp-blue);
  background: var(--rhp-blue);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.rhp-library {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(219, 232, 242, 0.92);
  border-radius: var(--rhp-radius);
  background:
    linear-gradient(135deg, rgba(47, 130, 189, 0.09), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f7fbfe 100%);
  box-shadow: var(--rhp-shadow);
}

.rhp-library:before {
  content: none;
}

.rhp-library__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.rhp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rhp-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rhp-eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rhp-green);
  box-shadow: 0 0 0 4px rgba(153, 204, 0, 0.12);
}

.rhp-library h2,
.rhp-about h2,
.rhp-partners h2 {
  margin: 5px 0 0;
  color: var(--rhp-blue-deep);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 900;
  line-height: 1.08;
}

.rhp-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(47, 130, 189, 0.2);
  border-radius: 999px;
  background: rgba(238, 247, 251, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rhp-tabs--mobile {
  display: none;
}

.rhp-tabs button {
  min-height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #245d84;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.rhp-tabs button[aria-selected="true"] {
  background: var(--rhp-blue-deep);
  color: #fff;
  box-shadow: 0 8px 18px rgba(32, 54, 79, 0.22);
}

.rhp-tabs button:focus {
  outline: 2px solid rgba(47, 130, 189, 0.35);
  outline-offset: 2px;
}

.rhp-library__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(430px, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

.rhp-lead-addon,
.rhp-addon-row,
.rhp-about,
.rhp-discover,
.rhp-partners {
  border: 1px solid rgba(190, 221, 238, 0.88);
  background: #fff;
}

.rhp-lead-addon {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--rhp-shadow-soft);
  contain: layout paint;
}

.rhp-lead-addon__image {
  position: relative;
  display: block;
  min-height: 288px;
  overflow: hidden;
  background: var(--rhp-cloud);
}

.rhp-lead-addon__image img {
  width: 100%;
  height: 100%;
  min-height: 288px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.rhp-lead-addon__image:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 41, 76, 0.58) 100%);
}

.rhp-lead-addon__image span,
.rhp-discover__image span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rhp-blue-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.rhp-lead-addon:hover .rhp-lead-addon__image img,
.rhp-lead-addon:focus-within .rhp-lead-addon__image img,
.rhp-discover:hover .rhp-discover__image img,
.rhp-discover:focus-within .rhp-discover__image img {
  transform: scale(1.035);
}

.rhp-lead-addon__body {
  padding: 21px 22px 23px;
}

.rhp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.rhp-meta-row span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--rhp-cloud);
  color: #245d84;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.rhp-lead-addon h3 {
  margin: 0;
  color: var(--rhp-blue-deep);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.14;
}

.rhp-lead-addon h3 a:hover,
.rhp-lead-addon h3 a:focus,
.rhp-discover__title:hover,
.rhp-discover__title:focus {
  color: var(--rhp-blue);
  outline: none;
}

.rhp-lead-addon p {
  margin: 11px 0 0;
  color: var(--rhp-ink-soft);
  font-size: 14px;
  line-height: 1.58;
}

.rhp-text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
  color: var(--rhp-blue);
  font-size: 13px;
  font-weight: 900;
}

.rhp-text-link:after {
  content: "";
  width: 22px;
  height: 1px;
  margin-left: 8px;
  background: currentColor;
}

.rhp-library__panels {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.rhp-addon-panel {
  display: none;
}

.rhp-addon-panel.is-active {
  display: block;
}

.rhp-addon-list {
  display: grid;
  gap: 10px;
}

.rhp-addon-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 9px 13px 9px 9px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(239, 249, 252, 0.66), #fff 46%);
  contain: layout paint;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rhp-addon-row:hover,
.rhp-addon-row:focus {
  border-color: rgba(47, 130, 189, 0.48);
  box-shadow: 0 8px 18px rgba(32, 54, 79, 0.085);
  outline: none;
  transform: translateY(-1px);
}

.rhp-addon-row img {
  width: 118px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--rhp-cloud);
}

.rhp-addon-row__text {
  min-width: 0;
}

.rhp-addon-row strong {
  display: block;
  overflow: hidden;
  color: var(--rhp-blue-deep);
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.22;
  text-overflow: ellipsis;
}

.rhp-addon-row__text span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--rhp-ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rhp-addon-row em {
  color: var(--rhp-blue);
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.rhp-about-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
}

.rhp-about,
.rhp-discover,
.rhp-partners {
  border-radius: var(--rhp-radius);
  box-shadow: var(--rhp-shadow-soft);
}

.rhp-about {
  padding: 30px;
  background:
    linear-gradient(90deg, var(--rhp-orange) 0, var(--rhp-orange) 4px, transparent 4px),
    linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.rhp-about__lead {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--rhp-ink-soft);
  font-size: 16px;
  line-height: 1.62;
}

.rhp-about__lead strong {
  color: var(--rhp-blue);
  font-weight: 900;
}

.rhp-about__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.rhp-about__points article {
  min-height: 112px;
  padding: 15px;
  border: 1px solid rgba(190, 221, 238, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.rhp-about__points strong {
  display: block;
  color: var(--rhp-blue-deep);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.rhp-about__points p {
  margin: 8px 0 0;
  color: var(--rhp-ink-soft);
  font-size: 13px;
  line-height: 1.48;
}

.rhp-discover {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  contain: layout paint;
}

.rhp-discover__image {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  background: var(--rhp-cloud);
}

.rhp-discover__image img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.rhp-discover__image:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 41, 76, 0.58) 100%);
}

.rhp-discover__body {
  padding: 20px;
}

.rhp-discover h3 {
  margin: 0;
  color: var(--rhp-blue-deep);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.rhp-discover__title {
  display: block;
  margin-top: 9px;
  color: var(--rhp-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.rhp-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.rhp-partners {
  padding: 22px 24px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}

.rhp-partners h2 {
  font-size: 24px;
}

.rhp-partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.rhp-partner-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(190, 221, 238, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  contain: layout paint;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rhp-partner-grid a:hover,
.rhp-partner-grid a:focus {
  border-color: rgba(47, 130, 189, 0.46);
  box-shadow: 0 8px 18px rgba(32, 54, 79, 0.075);
  outline: none;
  transform: translateY(-1px);
}

.rhp-partner-grid img {
  max-width: 150px;
  max-height: 46px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .rhp-platforms,
  .rhp-library__grid,
  .rhp-about-band {
    grid-template-columns: 1fr;
  }

  .rhp-platforms__links {
    justify-content: flex-start;
  }

  .rhp-library__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rhp-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .rhp-about__points {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .rhp-partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .riko-home-premium {
    width: 100%;
    padding: 0;
    margin-bottom: 30px;
  }

  .rhp-section {
    margin-top: 13px;
  }

  .rhp-platforms,
  .rhp-library,
  .rhp-about,
  .rhp-discover,
  .rhp-partners {
    border-radius: 18px;
  }

  .rhp-platforms {
    padding: 13px;
    min-height: 0;
  }

  .rhp-platforms__lead {
    padding-left: 0;
  }

  .rhp-platforms__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .rhp-platforms__links a,
  .rhp-quick-links a {
    min-height: 31px;
    width: 100%;
    padding: 0 7px;
    font-size: 11px;
  }

  .rhp-library {
    padding: 15px 13px;
  }

  .rhp-library h2,
  .rhp-about h2 {
    font-size: 24px;
  }

  .rhp-tabs button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
  }

  .rhp-tabs--desktop {
    display: none;
  }

  .rhp-tabs--mobile {
    display: flex;
    width: 100%;
    margin: 2px 0 0;
    overflow-x: auto;
  }

  .rhp-lead-addon__image,
  .rhp-lead-addon__image img {
    min-height: 198px;
  }

  .rhp-lead-addon__body,
  .rhp-discover__body {
    padding: 15px;
  }

  .rhp-lead-addon h3 {
    font-size: 20px;
    line-height: 1.12;
  }

  .rhp-addon-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    min-height: 78px;
    padding: 8px;
  }

  .rhp-addon-row img {
    width: 92px;
    height: 58px;
  }

  .rhp-addon-row em {
    display: none;
  }

  .rhp-about {
    padding: 20px 16px;
  }

  .rhp-about__lead {
    font-size: 15px;
  }

  .rhp-about__points {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .rhp-discover__image,
  .rhp-discover__image img {
    min-height: 170px;
  }

  .rhp-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .rhp-platforms__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhp-partner-grid {
    grid-template-columns: 1fr;
  }
}
