.repair-page {
  background: #fff;
}

.repair-hero {
  position: relative;
  min-height: 730px;
  overflow: hidden;
  color: #fff;
  background: #09090a;
}

.repair-hero-image,
.repair-hero-shade {
  position: absolute;
  inset: 0;
}

.repair-hero-image {
  background: url("iphone-premium.png") 64% center / cover no-repeat;
  transform: scale(1.02);
}

.repair-hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 6, 7, 0.99) 0%, rgba(6, 6, 7, 0.92) 43%, rgba(6, 6, 7, 0.5) 72%, rgba(6, 6, 7, 0.25) 100%),
    linear-gradient(0deg, rgba(6, 6, 7, 0.82), transparent 42%);
}

.repair-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}

.repair-hero .device-breadcrumbs {
  position: relative;
  z-index: 3;
}

.repair-hero-grid {
  position: relative;
  z-index: 3;
  min-height: 650px;
  padding: 65px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.62fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.repair-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.8rem, 5.7vw, 5.55rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.repair-hero h1 em {
  color: var(--device-red);
  font-style: normal;
}

.repair-selector {
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.repair-selector-head {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.repair-selector-head span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.repair-selector-head i {
  color: var(--device-red);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 700;
}

.repair-selector > a {
  padding: 15px 4px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  transition: color 180ms ease, padding 180ms ease;
}

.repair-selector > a:hover {
  padding-right: 9px;
  color: #fff;
}

.repair-selector-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--device-red);
  background: rgba(255, 255, 255, 0.08);
}

.repair-selector-icon svg {
  width: 18px;
  height: 18px;
}

.repair-selector b {
  color: var(--device-red);
  font-size: 0.69rem;
}

.repair-selector-footer {
  margin-top: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-radius: 15px;
  color: #fff;
  background: var(--device-red);
  font-size: 0.7rem;
}

.repair-selector-footer a {
  font-weight: 700;
  white-space: nowrap;
}

.repair-category-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 18px;
}

.repair-category-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--device-line);
  border-radius: 24px;
  background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.repair-category-card:hover {
  border-color: rgba(231, 25, 42, 0.34);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.repair-category-card.large {
  min-height: 518px;
  padding: 38px;
  grid-row: 1 / 3;
  background: #f4f3f2;
}

.repair-category-card.dark {
  color: #fff;
  border-color: #111113;
  background: #111113;
}

.repair-category-card.red {
  color: #fff;
  border-color: var(--device-red);
  background: var(--device-red);
}

.repair-category-card.soft {
  background: #f6f5f4;
}

.repair-category-copy {
  position: relative;
  z-index: 2;
  max-width: 330px;
}

.repair-category-card small {
  color: var(--device-red);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.repair-category-card.red small {
  color: rgba(255, 255, 255, 0.7);
}

.repair-category-card h3 {
  margin: 14px 0 10px;
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.repair-category-card p {
  margin: 0;
  color: var(--device-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.repair-category-card.dark p,
.repair-category-card.red p {
  color: rgba(255, 255, 255, 0.62);
}

.repair-category-link {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 24px;
  color: var(--device-red);
  font-size: 0.74rem;
  font-weight: 700;
}

.repair-category-card.red .repair-category-link {
  color: #fff;
}

.repair-category-card img {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
}

.repair-category-card.large img {
  right: -65px;
  bottom: -90px;
  width: 75%;
  max-width: 430px;
  mix-blend-mode: multiply;
  transform: rotate(-4deg);
}

.repair-category-card.samsung img {
  right: -12px;
  bottom: -30px;
  width: 45%;
  max-height: 210px;
  mix-blend-mode: multiply;
}

.repair-category-card.ipad img {
  right: -7px;
  bottom: -30px;
  width: 44%;
  max-height: 205px;
  mix-blend-mode: multiply;
}

.repair-category-card.watch img {
  right: -5px;
  bottom: -25px;
  width: 45%;
  max-height: 205px;
  mix-blend-mode: multiply;
}

.repair-category-card.macbook img {
  right: -35px;
  bottom: -30px;
  width: 58%;
  max-height: 200px;
  mix-blend-mode: multiply;
}

.repair-issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.repair-issue {
  min-height: 180px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  transition: background 180ms ease, transform 180ms ease;
}

.repair-issue:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.repair-issue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.repair-issue-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--device-red);
}

.repair-issue-icon svg {
  width: 22px;
  height: 22px;
}

.repair-issue-top span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.repair-issue h3 {
  margin: 24px 0 7px;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
}

.repair-issue p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  line-height: 1.6;
}

.repair-issue > span {
  margin-top: auto;
  padding-top: 18px;
  color: var(--device-red);
  font-size: 0.7rem;
  font-weight: 700;
}

.repair-brand-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.repair-brand-link {
  min-height: 94px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--device-line);
  border-radius: 17px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 180ms ease, transform 180ms ease;
}

.repair-brand-link:hover {
  border-color: var(--device-red);
  transform: translateY(-3px);
}

.repair-brand-link span:last-child {
  color: var(--device-red);
}

@media (max-width: 1050px) {
  .repair-hero-grid {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }

  .repair-category-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .repair-category-card.large {
    grid-row: 1 / 3;
  }

  .repair-category-card.watch {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .repair-hero {
    min-height: auto;
  }

  .repair-hero-image {
    background-position: 72% center;
  }

  .repair-hero-grid {
    min-height: auto;
    padding: 55px 0 70px;
    grid-template-columns: 1fr;
  }

  .repair-issue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .repair-brand-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .repair-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .repair-selector {
    padding: 21px;
    border-radius: 24px;
  }

  .repair-category-grid,
  .repair-issue-grid,
  .repair-brand-row {
    grid-template-columns: 1fr;
  }

  .repair-category-card.large {
    min-height: 470px;
    grid-row: auto;
  }

  .repair-category-card.watch {
    grid-column: auto;
  }

  .repair-category-card.large img {
    width: 88%;
  }

  .repair-category-card:not(.large) {
    min-height: 280px;
  }
}
