.ars {
  --ars-black: #080808;
  --ars-soft: #f6f6f7;
  --ars-line: #e9e9ec;
  color: var(--ars-black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: min(96vw, 1560px);
  max-width: none;
  margin: 24px auto;
}

.ars * { box-sizing: border-box; }

.ars [hidden] {
  display: none !important;
}

.ars-crumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.ars-crumbs button,
.ars-crumbs a,
.ars-crumbs span {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b8b8bf;
  padding: 6px 2px;
  font-size: clamp(13px, 1.35vw, 16px);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.ars-crumbs button { cursor: pointer; }
.ars-crumbs .is-active,
.ars-crumbs a { color: var(--ars-accent); }
.ars-crumbs button:hover,
.ars-crumbs a:hover { transform: translateY(-1px); color: var(--ars-accent); }

.ars-stage {
  overflow: hidden;
  min-height: min(760px, 78vh);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, var(--ars-soft));
  box-shadow: 0 28px 76px rgba(0, 0, 0, .08);
  padding: clamp(20px, 4vw, 44px);
}

.ars-stage.is-sliding .ars-choice-panel,
.ars-stage.is-sliding .ars-repair-panel {
  animation: arsSlide .38s ease both;
}

.ars-choice-panel { text-align: center; }

.ars-choice-panel h2 {
  margin: 0 0 34px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 680;
  letter-spacing: 0;
}

.ars-live-search {
  position: relative;
  width: min(100%, 560px);
  margin: -10px auto 42px;
}

.ars-live-search input {
  width: 100%;
  border: 1px solid #e9e9ee;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .06);
  color: var(--ars-black);
  font-size: 15px;
  font-weight: 650;
  outline: 0;
  padding: 15px 20px;
}

.ars-live-search input:focus {
  border-color: var(--ars-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ars-accent), transparent 82%), 0 16px 38px rgba(0, 0, 0, .08);
}

.ars-live-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  border: 1px solid #ececf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .14);
  padding: 8px;
  text-align: left;
}

.ars-live-results button,
.ars-live-results > span {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ars-black);
  cursor: pointer;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-align: left;
}

.ars-live-results button img,
.ars-live-results button i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f3f3f5;
  object-fit: contain;
}

.ars-live-results button i {
  display: block;
}

.ars-live-results button span {
  display: grid;
  gap: 3px;
}

.ars-live-results button:hover {
  background: color-mix(in srgb, var(--ars-accent), #fff 94%);
}

.ars-live-results small {
  color: #777780;
}

.ars-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 156px));
  justify-content: center;
  gap: 14px;
}

.ars-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 132px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ars-black);
  cursor: pointer;
  padding: 16px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .075);
  animation: arsRise .36s ease both;
  animation-delay: var(--delay);
  transition: transform .24s ease, box-shadow .24s ease, color .24s ease;
}

.ars-card img {
  object-fit: contain;
  max-width: 100px;
  max-height: 100px;
}

.ars-card i {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ars-accent), #fff 88%);
  position: relative;
}

.ars-card i::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-right: 3px solid var(--ars-accent);
  border-top: 3px solid var(--ars-accent);
  transform: rotate(45deg) translate(-2px, 2px);
}

.ars-card:hover {
  color: var(--ars-accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .12);
}

.ars-repair-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(300px, 400px);
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  justify-content: center;
}

.ars-repair-heading {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 -8px;
}

.ars-diagnostic-open {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--ars-accent), #fff 58%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ars-accent), #fff 94%);
  color: var(--ars-accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 14px;
}

.ars-repair-heading img {
  display: block;
  object-fit: contain;
}

.ars-repair-title {
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 720;
  letter-spacing: 0;
}

.ars-device-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 100%;
}

.ars-image-box {
  position: relative;
  display: inline-block;
  max-width: min(100%, 540px);
  line-height: 0;
}

.ars-image-box img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.ars-hotspots {
  position: absolute;
  inset: 0;
}

.ars-hotspot {
  position: absolute;
  display: block;
  appearance: none;
  cursor: pointer;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--ars-accent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.88);
  transition: opacity .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ars-hotspot::before,
.ars-hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ars-accent);
  opacity: .34;
  animation: arsPulse 1.7s ease-out infinite;
}

.ars-hotspot::after {
  animation-delay: .55s;
}

.ars-hotspot:hover,
.ars-hotspot.is-hovered,
.ars-hotspot.is-selected {
  opacity: 1;
  box-shadow: 0 0 0 6px rgba(227, 6, 19, .16), 0 0 24px rgba(227, 6, 19, .34);
  transform: translate(-50%, -50%) scale(1);
}

.ars-hotspots.is-hovering .ars-hotspot.is-selected:not(.is-hovered) {
  opacity: 0;
  box-shadow: none;
}

.ars-floating-repairs {
  display: grid;
  gap: 10px;
  align-self: center;
  justify-self: start;
  width: min(100%, 420px);
}

.ars-repair-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 0;
  outline: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--ars-black);
  cursor: pointer;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
  animation: arsRise .36s ease both;
  animation-delay: var(--delay);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, outline-color .2s ease;
}

.ars-repair-details {
  grid-column: 2 / 4;
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.ars-repair-details[hidden] {
  display: none;
}

.ars-variant-list {
  display: grid;
  gap: 7px;
}

.ars-variant-item {
  appearance: none;
  border: 1px solid transparent;
  outline: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f7f7f8;
  color: var(--ars-black);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}

.ars-variant-item:hover,
.ars-variant-item:focus,
.ars-variant-item.is-selected {
  border-color: var(--ars-accent);
  box-shadow: 0 0 0 1px var(--ars-accent);
  background: color-mix(in srgb, var(--ars-accent), #fff 94%);
}

.ars-variant-item strong {
  font-size: 13px;
}

.ars-variant-item small {
  grid-column: 1 / 2;
  color: #77777e;
  font-size: 12px;
}

.ars-variant-item b {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 13px;
  font-weight: 800;
  color: var(--ars-accent);
}

.ars-repair-details > i {
  color: #686870;
  font-size: 12px;
  line-height: 1.45;
}

.ars-repair-details > i strong {
  color: var(--ars-black);
  font-style: italic;
}

.ars-repair-copy a {
  color: var(--ars-accent);
}

.ars-repair-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ars-accent), #fff 90%);
}

.ars-repair-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ars-accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ars-repair-copy strong,
.ars-repair-copy small,
.ars-repair-copy em { display: block; }

.ars-repair-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.ars-repair-copy small {
  color: #707078;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.ars-repair-copy em {
  color: #9b9ba2;
  font-size: 12px;
  font-style: normal;
  margin-top: 5px;
}

.ars-repair-card b {
  color: var(--ars-accent);
  font-size: 16px;
  white-space: nowrap;
}

.ars-repair-card:hover,
.ars-repair-card.is-hovered,
.ars-repair-card.is-selected {
  background: color-mix(in srgb, var(--ars-accent), #fff 96%);
  transform: translateX(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.ars-repair-card.is-selected {
  outline-color: var(--ars-accent);
  box-shadow: 0 0 0 2px var(--ars-accent), 0 20px 40px rgba(0, 0, 0, .12);
}

.ars-repair-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -4px;
}

.ars-repair-footer:has(.ars-repair-info[hidden]) {
  justify-content: flex-end;
}

.ars-repair-info {
  margin: 0;
  color: #686870;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}

.ars-repair-info strong {
  color: var(--ars-black);
}

.ars-next-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--ars-accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 20px;
  transition: opacity .2s ease, transform .2s ease;
}

.ars-next-button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.ars-next-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.ars-diagnostic {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 8, 8, .36);
  backdrop-filter: blur(10px);
  animation: arsFade .22s ease both;
}

.ars-diagnostic[hidden] {
  display: none;
}

.ars-diagnostic-box {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(100%, 760px);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
  animation: arsModalIn .28s ease both;
}

.ars-diagnostic-box h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.ars-diagnostic-step {
  justify-self: start;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ars-accent), #fff 92%);
  color: var(--ars-accent);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
}

.ars-diagnostic-help {
  margin: -6px 0 2px;
  color: #696970;
  line-height: 1.45;
}

.ars-diagnostic-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f4;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ars-diagnostic-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.ars-diagnostic-options button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid #e8e8ec;
  border-radius: 16px;
  background: #fbfbfc;
  color: var(--ars-black);
  cursor: pointer;
  min-height: 72px;
  padding: 15px;
  text-align: left;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ars-diagnostic-options button.ars-no-icon {
  grid-template-columns: 1fr;
}

.ars-diagnostic-options button > span:last-child {
  display: block;
  line-height: 1.28;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.ars-diagnostic-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--ars-accent), #fff 91%);
}

.ars-diagnostic-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ars-accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ars-diagnostic-options button:hover,
.ars-diagnostic-options button.is-selected {
  border-color: var(--ars-accent);
  background: color-mix(in srgb, var(--ars-accent), #fff 94%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.ars-diagnostic-result {
  margin: 0;
  border-left: 4px solid var(--ars-accent);
  border-radius: 14px;
  background: #f8f8fa;
  color: #55555d;
  line-height: 1.62;
  padding: 16px 18px;
}

.ars-diagnostic-result strong {
  color: var(--ars-accent);
  font-size: 18px;
}

.ars-diagnostic-result span {
  display: block;
  margin-top: 10px;
}

.ars-diagnostic-result em {
  display: block;
  margin-top: 8px;
  color: #77777f;
  font-size: 13px;
}

.ars-diagnostic-back {
  justify-self: start;
  border: 1px solid #e5e5e8;
  border-radius: 999px;
  background: #fff;
  color: var(--ars-black);
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 800;
}

.ars-diagnostic-finish {
  justify-self: end;
  border: 0;
  border-radius: 999px;
  background: var(--ars-accent);
  color: #fff;
  cursor: pointer;
  padding: 10px 18px;
  font-weight: 800;
}

.ars-diagnostic-finish:disabled {
  cursor: not-allowed;
  opacity: .4;
}

@keyframes arsSlide {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes arsRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes arsPop {
  to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes arsPulse {
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}

@keyframes arsFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes arsModalIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  .ars { margin: 18px auto; }
  .ars-stage { min-height: auto; border-radius: 18px; padding: 18px; }
  .ars-crumbs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; gap: 12px; padding-bottom: 4px; }
  .ars-crumbs button,
  .ars-crumbs a,
  .ars-crumbs span { flex: 0 0 auto; white-space: nowrap; font-size: 13px; }
  .ars-cards { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .ars-repair-panel { grid-template-columns: 1fr; }
  .ars-device-visual { min-height: 300px; }
  .ars-device-visual,
  .ars-floating-repairs { justify-self: center; }
  .ars-image-box img { max-height: 330px; }
  .ars-repair-card { grid-template-columns: 36px 1fr; }
  .ars-repair-card b { grid-column: 2; font-size: 15px; }
  .ars-repair-details { grid-column: 2; }
  .ars-repair-footer { display: grid; }
  .ars-next-button { width: 100%; }
}
