.repair-page {
  --repair-ink: #17111f;
  --repair-muted: #6f6875;
  --repair-purple: #7e2d91;
  --repair-purple-dark: #4c155d;
  --repair-pink: #f05a88;
  --repair-yellow: #ffd82f;
  --repair-paper: #f7f4f8;
  --repair-line: rgba(23, 17, 31, 0.12);
  color: var(--repair-ink);
  padding-top: 48px;
  padding-bottom: 96px;
}

.repair-page *,
.repair-page *::before,
.repair-page *::after {
  box-sizing: border-box;
}

.repair-page h1,
.repair-page h2,
.repair-page h3,
.repair-page p {
  margin-top: 0;
}

.repair-page h1,
.repair-page h2,
.repair-page h3 {
  color: var(--repair-ink);
  letter-spacing: -0.035em;
}

.repair-page a {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.repair-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--repair-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
}

.repair-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  min-height: 570px;
  overflow: hidden;
  border-radius: 32px;
  background: #f6f0f7;
}

.repair-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 32px 72px 68px;
}

.repair-hero h1 {
  max-width: 670px;
  margin-bottom: 28px;
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 800;
  line-height: .98;
}

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

.repair-hero__copy > p {
  max-width: 590px;
  margin-bottom: 36px;
  color: #514956;
  font-size: 19px;
  line-height: 1.55;
}

.repair-actions,
.repair-panel__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.repair-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 24px;
  border: 0;
  border-radius: 14px;
  background: var(--repair-purple);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.repair-button:hover {
  transform: translateY(-2px);
  background: var(--repair-purple-dark);
  color: #fff;
}

.repair-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid currentColor;
  color: var(--repair-ink);
  font-size: 16px;
  font-weight: 700;
}

.repair-link:hover {
  color: var(--repair-purple);
}

.repair-hero__visual {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: linear-gradient(145deg, #7f2e91 0%, #9b3fa7 52%, #f36887 100%);
}

.repair-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 390px;
  height: 390px;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
}

.repair-orbit::before,
.repair-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}

.repair-orbit::before { inset: -72px; }
.repair-orbit::after { inset: 76px; }

.repair-hero__device {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 24px 26px rgba(40, 8, 48, .28));
}

.repair-hero__device svg { width: 100%; height: 100%; }
.repair-hero__device--mac { top: 94px; left: 62px; width: 330px; height: 330px; transform: rotate(-8deg); }
.repair-hero__device--phone { right: 50px; bottom: 35px; width: 205px; height: 310px; transform: rotate(13deg); color: var(--repair-yellow); }

.repair-hero__stamp {
  position: absolute;
  right: 26px;
  top: 30px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 100px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.repair-hero__stamp span { color: var(--repair-yellow); font-size: 18px; }

.repair-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--repair-line);
}

.repair-benefits > div {
  display: flex;
  gap: 18px;
  padding: 30px 32px;
  border-right: 1px solid var(--repair-line);
}

.repair-benefits > div:last-child { border-right: 0; }
.repair-benefits span { color: var(--repair-purple); font-size: 12px; font-weight: 800; }
.repair-benefits p { margin: 0; color: var(--repair-muted); font-size: 14px; line-height: 1.5; }
.repair-benefits strong { display: block; margin-bottom: 3px; color: var(--repair-ink); font-size: 15px; }

.repair-catalog,
.repair-process,
.repair-faq {
  padding-top: 110px;
}

.repair-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.repair-section-heading h2,
.repair-faq h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
}

.repair-section-heading > p {
  margin-bottom: 3px;
  color: var(--repair-muted);
  font-size: 16px;
  line-height: 1.55;
}

.repair-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.repair-filters::-webkit-scrollbar { display: none; }

.repair-filters button {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid var(--repair-line);
  border-radius: 100px;
  background: #fff;
  color: #5d5661;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.repair-filters button span {
  margin-left: 7px;
  color: #a29ca5;
  font-size: 11px;
}

.repair-filters button:hover,
.repair-filters button.is-active {
  border-color: var(--repair-ink);
  background: var(--repair-ink);
  color: #fff;
}

.repair-filters button.is-active span { color: rgba(255,255,255,.65); }

.repair-workspace {
  display: grid;
  grid-template-columns: minmax(285px, .34fr) minmax(0, .66fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--repair-line);
  border-radius: 24px;
  background: var(--repair-paper);
}

.repair-models {
  padding: 24px 12px 18px;
  border-right: 1px solid var(--repair-line);
  background: #fff;
}

.repair-search {
  position: relative;
  display: block;
  margin: 0 10px 18px;
}

.repair-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.repair-search::before {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border: 2px solid #817987;
  border-radius: 50%;
  content: "";
}

.repair-search::after {
  position: absolute;
  top: calc(50% + 5px);
  left: 29px;
  width: 6px;
  height: 2px;
  transform: rotate(45deg);
  background: #817987;
  content: "";
}

.repair-search input {
  width: 100%;
  height: 48px;
  padding: 0 42px;
  border: 1px solid var(--repair-line);
  border-radius: 13px;
  outline: none;
  background: #f8f6f9;
  color: var(--repair-ink);
  font: inherit;
  font-size: 14px;
}

.repair-search input:focus { border-color: var(--repair-purple); box-shadow: 0 0 0 3px rgba(126,45,145,.1); }
.repair-search input::-webkit-search-cancel-button { cursor: pointer; }

.repair-models__list {
  max-height: 510px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.repair-model {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  margin: 3px 0;
  padding: 10px 13px;
  border-radius: 14px;
  color: var(--repair-ink);
}

.repair-model:hover,
.repair-model.is-active {
  background: #f3e8f5;
  color: var(--repair-purple-dark);
}

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

.repair-model__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #f3eff4;
  color: var(--repair-purple);
}

.repair-model__icon svg { width: 25px; height: 25px; }
.repair-model > span:nth-child(2) { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.repair-model small { display: block; margin-top: 4px; color: #88818c; font-size: 11px; font-weight: 500; }
.repair-model__arrow { color: #aaa3ad; font-size: 17px; }
.repair-model.is-active .repair-model__arrow { color: var(--repair-purple); }
.repair-models__count { margin: 14px 12px 0; color: #969099; font-size: 11px; }

.repair-results {
  position: relative;
  min-width: 0;
  padding: 38px;
}

.repair-panel {
  overflow: hidden;
  border: 1px solid var(--repair-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(43, 21, 48, .06);
}

.repair-panel[hidden] { display: none; }
.repair-panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 30px 34px 24px; }
.repair-panel__heading h2,
.repair-panel__heading h3 { margin: 0; font-size: clamp(27px, 2.6vw, 34px); line-height: 1.08; }
.repair-panel__icon { display: grid; width: 74px; height: 74px; flex: 0 0 auto; place-items: center; border-radius: 20px; background: #f3e8f5; color: var(--repair-purple); }
.repair-panel__icon svg { width: 43px; height: 43px; }

.repair-prices { border-top: 1px solid var(--repair-line); }
.repair-prices__head,
.repair-prices__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .34fr); gap: 20px; align-items: center; }
.repair-prices__head { padding: 11px 34px; background: #f7f4f8; color: #8b8490; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.repair-prices__head span:last-child { text-align: right; }
.repair-prices__row { min-height: 70px; padding: 15px 34px; border-top: 1px solid var(--repair-line); }
.repair-prices__head + .repair-prices__row { border-top: 0; }
.repair-prices__row strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; }
.repair-prices__row small { display: block; margin-top: 5px; color: #8b8490; font-size: 11px; }
.repair-prices__value { text-align: right; color: var(--repair-purple-dark); font-size: 16px; font-weight: 800; }
.repair-note { margin: 0; padding: 18px 34px 28px; color: #8a838d; font-size: 11px; line-height: 1.5; }
.repair-panel__footer { margin-top: 26px; padding: 0 34px 32px; }

.repair-empty {
  padding: 70px 40px;
  border: 1px dashed rgba(126,45,145,.35);
  border-radius: 24px;
  background: #fbf8fc;
  text-align: center;
}

.repair-empty[hidden] { display: none; }
.repair-empty h3 { margin-bottom: 12px; font-size: 26px; }
.repair-empty p { max-width: 590px; margin: 0 auto 24px; color: var(--repair-muted); line-height: 1.6; }
.repair-empty__icon { display: grid; width: 72px; height: 72px; margin: 0 auto 24px; place-items: center; border-radius: 20px; background: #f3e8f5; color: var(--repair-purple); }
.repair-empty__icon svg { width: 42px; height: 42px; }
.repair-empty__devices { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; color: var(--repair-purple); }
.repair-empty__devices svg { width: 58px; height: 58px; padding: 12px; border-radius: 16px; background: #f3e8f5; }
.repair-empty--compact { margin: 0 34px 30px; padding: 36px 26px; }
.repair-empty--compact h3 { font-size: 21px; }

.repair-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--repair-line);
  border-bottom: 1px solid var(--repair-line);
}

.repair-steps article { position: relative; min-height: 270px; padding: 32px; border-right: 1px solid var(--repair-line); }
.repair-steps article:last-child { border-right: 0; }
.repair-steps article::after { position: absolute; right: 25px; bottom: 18px; color: #eee9ef; font-size: 100px; font-weight: 900; content: attr(data-step); }
.repair-steps span { color: var(--repair-purple); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.repair-steps h3 { position: relative; z-index: 1; max-width: 280px; margin: 58px 0 12px; font-size: 22px; }
.repair-steps p { position: relative; z-index: 1; max-width: 315px; margin-bottom: 0; color: var(--repair-muted); font-size: 14px; line-height: 1.55; }

.repair-faq { display: grid; grid-template-columns: .42fr .58fr; gap: 80px; }
.repair-faq details { border-top: 1px solid var(--repair-line); }
.repair-faq details:last-child { border-bottom: 1px solid var(--repair-line); }
.repair-faq summary { position: relative; padding: 23px 44px 23px 0; color: var(--repair-ink); font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.repair-faq summary::-webkit-details-marker { display: none; }
.repair-faq summary::after { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: var(--repair-purple); font-size: 24px; content: "+"; }
.repair-faq details[open] summary::after { content: "−"; }
.repair-faq details p { padding-right: 40px; color: var(--repair-muted); font-size: 14px; line-height: 1.65; }

.repair-contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  margin-top: 110px;
  padding: 62px 68px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--repair-ink);
  color: #fff;
}

.repair-contact .repair-eyebrow { color: #db96e7; }
.repair-contact h2 { margin-bottom: 16px; color: #fff; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.repair-contact p { margin: 0; color: rgba(255,255,255,.62); font-size: 16px; }
.repair-contact__actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
.repair-contact__actions > a:first-child { color: #fff; font-size: 27px; font-weight: 800; }
.repair-contact__actions > a:first-child:hover { color: #db96e7; }
.repair-button--light { background: #fff; color: var(--repair-ink); }
.repair-button--light:hover { background: var(--repair-yellow); color: var(--repair-ink); }
.repair-contact__address { color: rgba(255,255,255,.65); font-size: 13px; }
.repair-contact__address:hover { color: #fff; }

.repair-back { display: inline-flex; margin-bottom: 32px; color: var(--repair-muted); font-size: 14px; font-weight: 700; }
.repair-back:hover { color: var(--repair-purple); }
.repair-detail__heading { display: flex; min-height: 330px; align-items: center; justify-content: space-between; gap: 60px; padding: 54px 68px; border-radius: 28px; background: #f6f0f7; }
.repair-detail__heading h1 { margin-bottom: 20px; font-size: clamp(34px, 3.5vw, 44px); line-height: 1.05; }
.repair-detail__heading p { margin: 0; color: var(--repair-muted); font-size: 17px; line-height: 1.6; }
.repair-detail__icon { display: grid; width: 210px; height: 210px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--repair-purple), var(--repair-pink)); color: #fff; }
.repair-detail__icon svg { width: 118px; height: 118px; }
.repair-detail__layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .6fr); gap: 24px; margin-top: 24px; align-items: start; }
.repair-help { position: sticky; top: 20px; padding: 34px; border-radius: 20px; background: var(--repair-yellow); }
.repair-help h2 { margin-bottom: 16px; font-size: 28px; line-height: 1.1; }
.repair-help p { margin-bottom: 24px; color: rgba(23,17,31,.72); line-height: 1.55; }
.repair-help .repair-button { width: 100%; margin-bottom: 16px; }
.repair-help .repair-link { width: 100%; margin-top: 5px; }
.repair-description { margin-top: 42px; padding: 48px; border-top: 1px solid var(--repair-line); border-bottom: 1px solid var(--repair-line); }

@media (max-width: 1100px) {
  .repair-hero { grid-template-columns: 1.2fr .8fr; }
  .repair-hero__copy { padding-left: 42px; }
  .repair-hero__device--mac { left: 24px; width: 270px; }
  .repair-hero__device--phone { right: 24px; width: 160px; }
  .repair-faq { gap: 40px; }
  .repair-contact { padding: 50px; }
}

@media (max-width: 900px) {
  .repair-page { padding-top: 28px; }
  .repair-hero { grid-template-columns: 1fr; }
  .repair-hero__copy { min-height: 470px; padding: 56px 42px; }
  .repair-hero__visual { min-height: 360px; }
  .repair-hero__device--mac { top: 40px; left: 17%; width: 260px; height: 260px; }
  .repair-hero__device--phone { right: 17%; width: 145px; height: 230px; }
  .repair-benefits { grid-template-columns: 1fr; padding: 14px 0; }
  .repair-benefits > div { padding: 16px 22px; border-right: 0; }
  .repair-workspace { grid-template-columns: minmax(240px, .4fr) minmax(0, .6fr); }
  .repair-results { padding: 24px; }
  .repair-panel__heading, .repair-prices__row { padding-left: 24px; padding-right: 24px; }
  .repair-prices__head { padding-left: 24px; padding-right: 24px; }
  .repair-note { padding-left: 24px; padding-right: 24px; }
  .repair-panel__footer { padding-left: 24px; padding-right: 24px; }
  .repair-steps { grid-template-columns: 1fr; }
  .repair-steps article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--repair-line); }
  .repair-steps article:last-child { border-bottom: 0; }
  .repair-steps h3 { margin-top: 28px; }
  .repair-faq { grid-template-columns: 1fr; }
  .repair-contact { grid-template-columns: 1fr; gap: 34px; }
  .repair-detail__layout { grid-template-columns: 1fr; }
  .repair-help { position: static; }
}

@media (max-width: 700px) {
  .repair-page { padding-bottom: 54px; }
  .repair-hero { min-height: 0; border-radius: 22px; }
  .repair-hero__copy { min-height: 430px; padding: 42px 24px; }
  .repair-hero h1 { font-size: 34px; }
  .repair-hero__copy > p { font-size: 16px; }
  .repair-actions { align-items: flex-start; flex-direction: column; }
  .repair-hero__visual { min-height: 290px; }
  .repair-hero__device--mac { left: 8%; width: 220px; height: 220px; }
  .repair-hero__device--phone { right: 8%; width: 125px; height: 200px; }
  .repair-hero__stamp { display: none; }
  .repair-catalog, .repair-process, .repair-faq { padding-top: 74px; }
  .repair-section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .repair-section-heading h2, .repair-faq h2 { font-size: 32px; }
  .repair-section-heading > p { display: none; }
  .repair-filters { margin-right: -15px; padding-right: 15px; }
  .repair-workspace { display: block; border-radius: 18px; }
  .repair-models { border-right: 0; border-bottom: 1px solid var(--repair-line); }
  .repair-models__list { max-height: 330px; }
  .repair-results { padding: 14px; }
  .repair-panel__heading { padding: 24px 20px 20px; }
  .repair-panel__heading h2, .repair-panel__heading h3 { font-size: 26px; }
  .repair-panel__icon { width: 58px; height: 58px; border-radius: 16px; }
  .repair-panel__icon svg { width: 34px; height: 34px; }
  .repair-prices__head { display: none; }
  .repair-prices__row { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; padding: 17px 20px; }
  .repair-prices__value { text-align: left; }
  .repair-note { padding: 16px 20px 24px; }
  .repair-panel__footer { align-items: flex-start; flex-direction: column; padding: 0 20px 24px; }
  .repair-empty--compact { margin: 0 20px 24px; }
  .repair-steps article { padding: 26px 4px; }
  .repair-faq { gap: 30px; }
  .repair-contact { margin-top: 74px; padding: 38px 24px; border-radius: 22px; }
  .repair-contact h2 { font-size: 32px; }
  .repair-contact__actions > a:first-child { font-size: 23px; }
  .repair-back { margin-bottom: 22px; }
  .repair-detail__heading { min-height: 0; align-items: flex-start; padding: 40px 24px; border-radius: 22px; }
  .repair-detail__heading h1 { font-size: 30px; }
  .repair-detail__icon { width: 92px; height: 92px; }
  .repair-detail__icon svg { width: 52px; height: 52px; }
  .repair-detail__heading p { font-size: 15px; }
  .repair-detail__layout { margin-top: 16px; }
  .repair-help { padding: 28px 22px; }
  .repair-description { padding: 32px 0; }
}

@media (max-width: 500px) {
  .repair-detail__icon { display: none; }
  .repair-detail__heading { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .repair-page *, .repair-page *::before, .repair-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
