:root {
  --ink: #15283a;
  --muted: #516171;
  --blue: #185b8d;
  --pale: #f2f5f6;
  --line: #dce4e9;
  --rh-navy: #132c44;
  --rh-ice: #edf5f8;
  --rh-sand: #f4efe7;
  --rh-sky: #bce7fb;
  --rh-radius: 12px;
  --rh-nav-height: 78px;
}

.wrap {
  width: min(1280px, calc(100% - 88px));
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #146895;
  outline-offset: 4px;
}

.topline {
  background: #eff5f7;
  color: #425569;
  border-color: #dfe8ec;
}

.topline .wrap {
  padding-block: 6px;
  font-size: 11px;
}

.topline a {
  color: #284969;
}

.header {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.nav {
  height: var(--rh-nav-height);
  gap: clamp(12px, 2.4vw, 34px);
}

.nav .logo-crop {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #050608;
}

.nav .logo-crop img {
  width: 80px;
  left: -18px;
  top: -12px;
  clip-path: inset(0 0 34% 0);
}

.nav .wordmark {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .08em;
}

.nav .wordmark small {
  color: var(--blue);
  font-size: 8px;
}

.nav-links {
  gap: clamp(15px, 2.25vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  color: #405366;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a.active {
  border-color: var(--blue);
  padding-block: 27px;
}

.nav-call {
  border-color: #cbd8e1;
  color: var(--rh-navy);
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease;
}

.nav-call:hover {
  color: var(--blue);
  background: var(--rh-ice);
}

.menu-toggle {
  color: var(--ink);
  border-color: #cbd8e1;
}

.language-switch {
  border-color: #d5e1e8;
}

.language-switch a {
  color: #405366;
}

.language-switch a[aria-current=true] {
  background: var(--rh-navy);
  color: #fff;
}

.language-switch a:hover:not([aria-current=true]),
.language-switch a:focus-visible:not([aria-current=true]) {
  background: var(--rh-ice);
  color: var(--blue);
}

.btn {
  min-height: 48px;
  border-radius: 6px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover {
  background: #12466d;
  transform: none;
}

.btn.outline:hover {
  border-color: #a6becc;
  background: var(--rh-ice);
}

.btn.rh-primary {
  background: var(--rh-sky);
  color: #10283f;
}

.btn.rh-primary:hover {
  background: #e2f5ff;
}

.btn.rh-on-dark {
  border-color: #7892a8;
  background: transparent;
  color: #fff;
}

.btn.rh-on-dark:hover {
  border-color: #bce7fb;
  background: #24445f;
}

.rh-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.rh-lead {
  max-width: 52ch;
  color: #465a6b;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
}

.rh-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.rh-actions .btn {
  gap: 12px;
  padding-inline: 17px;
  white-space: normal;
}

.rh-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #174d75;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #9ab4c7;
  text-underline-offset: 4px;
}

.rh-link:hover {
  color: #102c45;
  text-decoration-color: currentColor;
}

.rh-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #d8e0e3;
}

.rh-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rh-photo--repair img {
  object-position: 52% 54%;
}

.rh-photo--sell img {
  object-position: 47% 55%;
}

.rh-home-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 502px;
  margin-block: 24px 16px;
  border-radius: var(--rh-radius);
  overflow: hidden;
  background: var(--rh-navy);
  color: #fff;
}

.rh-home-copy {
  align-self: center;
  padding: clamp(29px, 4.2vw, 61px);
}

.rh-home-copy .rh-kicker,
.rh-location-panel .rh-kicker {
  color: var(--rh-sky);
}

.rh-home-copy h1 {
  max-width: 10.8ch;
  font-size: clamp(44px, 4.68vw, 71px);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.rh-home-copy h1 em {
  display: block;
  color: var(--rh-sky);
  font-style: normal;
}

.rh-home-copy .rh-lead,
.rh-location-panel .rh-lead {
  margin-top: 20px;
  color: #d6e4ef;
}

.rh-home-hero a:focus-visible,
.rh-location-panel a:focus-visible,
.footer a:focus-visible {
  outline-color: #a6dfff;
}

.rh-carrier-logos {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: fit-content;
  gap: 12px;
}

.rh-carrier-logos > * {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 5px;
}

.rh-carrier-lucky {
  width: clamp(108px, 10.6vw, 152px);
  overflow: hidden;
}

.rh-carrier-chatr {
  width: clamp(79px, 7.2vw, 101px);
  padding: 4px 8px;
  border: 1px solid #dce6ec;
  background: #fff;
}

.rh-carrier-logos img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.rh-carrier-chatr img {
  max-height: 42px;
}

.rh-carrier-lucky:hover {
  filter: brightness(.95);
}

.rh-carrier-text h2 {
  font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: -.035em;
  line-height: 1.2;
}

.rh-carrier-text p {
  margin-top: 5px;
  color: #455c6c;
  font-size: 14px;
  line-height: 1.45;
}

.rh-home-section,
.rh-device-section,
.rh-other-services {
  padding-block: clamp(47px, 6.1vw, 89px);
}

.rh-heading {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.rh-heading h2,
.rh-feature-copy h2,
.rh-location-panel h2,
.rh-reviews h2 {
  font-size: clamp(32px, 3.65vw, 53px);
  letter-spacing: -.054em;
  line-height: 1.08;
  text-wrap: balance;
}

.rh-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 25px;
}

.rh-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.65vw, 24px);
}

.rh-service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--rh-radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}

.rh-service-card--devices {
  background: var(--rh-ice);
}

.rh-service-card:hover {
  border-color: #a0bbcd;
  background: #f7fafb;
}

.rh-service-card--devices:hover {
  background: #e3f0f5;
}

.rh-service-card-image {
  height: clamp(171px, 17vw, 244px);
  background: #e5e9e9;
  overflow: hidden;
}

.rh-service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}

.rh-service-card-body {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(17px, 2.15vw, 29px);
}

.rh-service-card h3 {
  font-size: clamp(20px, 2.05vw, 30px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.rh-service-card p {
  margin-block: 8px 17px;
  color: #495f70;
  line-height: 1.48;
  font-size: 15px;
}

.rh-service-card-action,
.rh-device-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  color: #184f79;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.rh-device-section {
  background: #f1f4f5;
  border-block: 1px solid #e3e9ed;
}

.rh-device-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rh-device {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  padding: 15px;
  border: 1px solid #dce5ea;
  border-radius: 9px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease;
}

.rh-device:hover {
  background: #f8fcfe;
  border-color: #9bb8cc;
}

.rh-device img {
  display: block;
  width: 100%;
  height: clamp(98px, 10.5vw, 151px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.rh-device-label {
  margin-top: 11px;
  color: var(--ink);
  font-size: 16px;
}

.rh-device-label span {
  color: var(--blue);
}

.rh-v7-home .trust-item strong {
  font-size: 14px;
}

.rh-v7-home .trust-item small {
  font-size: 12px;
}

.rh-photo-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 350px;
  border-radius: var(--rh-radius);
  overflow: hidden;
}

.rh-photo-feature--sand {
  background: var(--rh-sand);
}

.rh-photo-feature--blue {
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  background: var(--rh-ice);
}

.rh-feature-copy {
  align-self: center;
  padding: clamp(25px, 4.4vw, 62px);
}

.rh-feature-copy .rh-lead {
  margin-top: 16px;
}

.rh-feature-copy .rh-carrier-logos {
  margin-top: 20px;
}

.rh-reviews {
  padding-top: 0;
  padding-bottom: clamp(42px, 6vw, 83px);
}

.rh-reviews .section-head {
  margin-bottom: 26px;
}

.rh-reviews .review {
  border-radius: 9px;
}

.rh-reviews .review-note {
  color: #4a5d6b;
  font-size: 13px;
}

.rh-home-location {
  padding-top: 0;
  padding-bottom: clamp(28px, 4vw, 55px);
}

.rh-location-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(20px, 5vw, 74px);
  padding: clamp(25px, 5vw, 67px);
  border-radius: var(--rh-radius);
  background: var(--rh-navy);
  color: #fff;
}

.rh-location-panel .visit-card {
  border-color: #577087;
  background: #1b3852;
}

.rh-location-panel .visit-card p {
  color: #d7e5ef;
}

.rh-page-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: clamp(350px, 36vw, 477px);
  margin-block: 4px 25px;
  border-radius: var(--rh-radius);
  overflow: hidden;
  background: var(--rh-ice);
}

.rh-page-hero--buy {
  background: var(--rh-sand);
}

.rh-page-hero--sell {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  background: #e8f1f6;
}

.rh-page-hero--sell .rh-photo {
  order: -1;
}

.rh-page-hero--catalog {
  min-height: clamp(250px, 26vw, 347px);
  margin-bottom: 10px;
}

.rh-page-copy {
  align-self: center;
  padding: clamp(26px, 4.25vw, 61px);
}

.rh-page-copy h1,
.rh-service-intro h1,
.rh-contact-hero h1 {
  max-width: 15ch;
  font-size: clamp(39px, 4.2vw, 63px);
  letter-spacing: -.06em;
  line-height: 1.05;
  text-wrap: balance;
}

.rh-page-copy .rh-lead,
.rh-service-intro .rh-lead {
  margin-top: 16px;
}

.rh-page-copy .guide-actions .btn {
  padding-inline: 16px;
}

.rh-catalog-tabs {
  padding-bottom: 22px;
}

.rh-catalog-tabs .brand-tabs {
  margin-top: 14px;
}

.catalog-tools {
  top: calc(var(--rh-nav-height) + 1px);
}

.rh-repair-models {
  padding-top: 26px;
  scroll-margin-top: calc(var(--rh-nav-height) + 12px);
}

.rh-service-intro {
  padding-block: clamp(16px, 3.15vw, 43px) clamp(27px, 4.15vw, 57px);
}

.rh-service-intro h1 {
  max-width: 18ch;
}

.rh-service-feature {
  scroll-margin-top: calc(var(--rh-nav-height) + 16px);
}

.rh-service-feature + .rh-service-feature {
  margin-top: 22px;
}

.rh-other-services .model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rh-contact-hero {
  padding-top: 27px;
}

.rh-contact-hero .rh-lead {
  font-size: 17px;
}

.brand-card,
.model-card,
.contact-block,
.visit-card {
  border-radius: 9px;
}

.brand-card:hover,
.model-card:hover {
  border-color: #8bb1c6;
  box-shadow: none;
  transform: none;
}

.visit {
  background: var(--rh-navy);
}

.footer {
  background: #14293d;
  color: #d3dfeb;
}

.footer-logo {
  mix-blend-mode: screen;
}

.footer p,
.footer a {
  color: #c9d7e2;
}

.footer-bottom,
.footer-carriers {
  border-color: #3a5164;
}

.footer-bottom {
  color: #b8cbd9;
}

.footer-carrier {
  border-color: #4b6275;
  background: #1d354b;
}

.footer-carrier-primary {
  border-color: #648399;
  background: #234158;
}

.footer-carrier-primary:hover {
  border-color: #bce7fb;
  background: #2b4b65;
}

@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 54px);
  }

  .rh-home-hero {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  :root {
    --rh-nav-height: 68px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .topline .wrap {
    font-size: 10px;
  }

  .nav-links {
    top: var(--rh-nav-height);
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 9px 20px #172e4512;
  }

  .nav-links a,
  .nav-links a.active {
    padding: 12px 0;
  }

  .nav .wordmark {
    font-size: 10px;
  }

  .nav .logo-crop {
    width: 39px;
    height: 39px;
  }

  .nav .logo-crop img {
    width: 71px;
    left: -16px;
    top: -11px;
  }

  .rh-home-hero,
  .rh-page-hero,
  .rh-photo-feature,
  .rh-location-panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .rh-home-hero {
    margin-top: 12px;
  }

  .rh-home-copy,
  .rh-page-copy {
    padding: 26px 24px 28px;
  }

  .rh-home-copy h1 {
    max-width: 12.5ch;
    font-size: clamp(39px, 9.8vw, 60px);
  }

  .rh-home-copy .rh-lead,
  .rh-location-panel .rh-lead {
    margin-top: 15px;
  }

  .rh-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .rh-home-hero > .rh-photo {
    aspect-ratio: 1.54;
  }

  .rh-page-hero > .rh-photo,
  .rh-photo-feature > .rh-photo {
    aspect-ratio: 1.55;
    order: 0;
  }

  .rh-photo-feature--sand > .rh-photo {
    order: 1;
  }

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

  .rh-service-card--devices {
    grid-column: span 2;
  }

  .rh-service-card--devices .rh-service-card-image {
    height: clamp(160px, 42vw, 250px);
  }

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

  .rh-device-label {
    font-size: 14px;
  }

  .rh-v7-home .trust .wrap {
    width: calc(100% - 36px);
  }

  .rh-v7-home .trust-item {
    padding-inline: 5px;
  }

  .rh-v7-home .trust-item strong,
  .rh-v7-home .trust-item small {
    display: block;
    margin: 0;
  }

  .rh-location-panel .visit-card {
    padding: 19px;
  }

  .rh-other-services .model-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .rh-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rh-service-card--devices {
    grid-column: auto;
  }

  .rh-service-card-image,
  .rh-service-card--devices .rh-service-card-image {
    height: clamp(150px, 48vw, 235px);
  }

  .rh-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .rh-device {
    padding: 12px;
  }

  .rh-kicker {
    margin-bottom: 10px;
  }
}

@media (max-width: 520px) {
  .rh-home-copy .rh-lead {
    font-size: 15px;
  }

  .rh-home-copy .rh-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
    align-items: stretch;
  }

  .rh-home-copy .rh-actions .btn {
    gap: 6px;
    padding-inline: 8px;
    text-align: center;
  }
}
