.recovery-page {
  --recovery-copy-width: 820px;
  --recovery-wide-width: 1180px;
  color: var(--text);
  overflow-x: clip;
}

.recovery-page .recovery-layout {
  width: 100%;
  max-width: var(--recovery-wide-width);
  margin: 0 auto;
}

.recovery-page .style-page__breadcrumbs {
  margin-bottom: 18px;
}

.recovery-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  margin: 0;
  padding: 30px 0 48px;
  border: 0;
  background: transparent;
}

.recovery-hero__copy {
  min-width: 0;
}

.recovery-hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(42px, 4.3vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.recovery-hero__copy p {
  max-width: 700px;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.58;
}

.recovery-hero__copy p:last-of-type {
  margin-bottom: 24px;
}

.recovery-page .recovery-hero .eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.recovery-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #fff !important;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(25, 65, 46, 0.16);
}

.recovery-primary-cta:hover,
.recovery-primary-cta:focus {
  background: linear-gradient(135deg, var(--accent-strong), var(--secondary));
  color: #fff !important;
}

.recovery-figure {
  min-width: 0;
  margin: 0;
}

.recovery-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #eef1eb;
  object-fit: cover;
}

.recovery-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  align-items: baseline;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.recovery-page .recovery-hero__media > figcaption {
  display: flex;
}

.recovery-ai-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(25, 65, 46, 0.16);
  border-radius: 999px;
  background: #f3f7f1;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.recovery-hero__media img {
  aspect-ratio: 16 / 9;
}

.recovery-page--wyg .recovery-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  align-items: start;
  column-gap: clamp(28px, 4vw, 54px);
}

.recovery-page--wyg .recovery-hero__copy {
  max-width: none;
}

.recovery-page--wyg .recovery-hero__media img {
  aspect-ratio: 80 / 27;
}

.recovery-before-after-slider {
  aspect-ratio: 3 / 2;
  border-radius: 22px;
}

.recovery-before-after-slider .before-after__image {
  width: 200%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
}

.recovery-before-after__after-image {
  display: block;
  width: 200%;
  height: 100%;
  background: url("/assets/articles/yandex-recovery/what-you-get/WYG-01-before-after.webp") center / 100% 100% no-repeat;
  transform: translateX(-50%);
}

.recovery-section {
  width: 100%;
  margin: 0;
  padding: clamp(34px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}

.recovery-section__copy,
.recovery-section > h2,
.recovery-section > p,
.recovery-section > ul,
.recovery-section > ol,
.recovery-section > .recovery-faq-list {
  width: min(100%, var(--recovery-copy-width));
}

.recovery-section h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.recovery-section h3 {
  color: var(--text);
}

.recovery-section p,
.recovery-section li {
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.recovery-section p {
  margin: 0 0 16px;
}

.recovery-section ul,
.recovery-section ol {
  margin: 0 0 18px;
  padding-left: 23px;
}

.recovery-section li + li {
  margin-top: 7px;
}

.recovery-proof {
  width: min(100%, 1040px);
  margin-top: 28px;
}

.recovery-proof img {
  border: 1px solid rgba(25, 65, 46, 0.12);
  box-shadow: 0 20px 50px rgba(27, 33, 38, 0.1);
}

.recovery-screenshot-viewer {
  width: min(100%, 1040px);
  max-width: 100%;
  margin-top: 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(25, 65, 46, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(27, 33, 38, 0.08);
}

.recovery-screenshot-viewer img {
  border-radius: 0;
}

.recovery-screenshot-viewer + figcaption {
  width: min(100%, 1040px);
}

.recovery-table-wrap {
  width: min(100%, 1040px);
  margin-top: 24px;
}

.recovery-page table {
  margin-bottom: 0;
}

.recovery-page .article-table,
.recovery-page .comparison-table {
  min-width: 0;
}

.recovery-page .article-table tbody th,
.recovery-page .comparison-table tbody th {
  color: var(--accent-strong);
  font-weight: 800;
  text-align: left;
}

.recovery-note {
  width: min(100%, var(--recovery-copy-width));
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: #f6f8f3;
}

.recovery-note p:last-child {
  margin-bottom: 0;
}

.recovery-faq-list details {
  margin: 0;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.recovery-faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.recovery-faq-list summary {
  cursor: pointer;
}

.recovery-faq-list summary h3 {
  display: inline;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.recovery-faq-list details p {
  margin: 12px 38px 0 0;
}

.recovery-page--ideas .recovery-section__copy,
.recovery-page--ideas .recovery-section > h2,
.recovery-page--ideas .recovery-section > p,
.recovery-page--ideas .recovery-section > ul,
.recovery-page--ideas .recovery-section > ol,
.recovery-page--ideas .recovery-section > .recovery-faq-list,
.recovery-page--ideas .recovery-table-wrap,
.recovery-page--ideas .recovery-steps,
.recovery-page--ideas .recovery-before-after {
  width: 100%;
  max-width: none;
}

.recovery-page--wyg .recovery-section__copy,
.recovery-page--wyg .recovery-section > h2,
.recovery-page--wyg .recovery-section > p,
.recovery-page--wyg .recovery-section > ul,
.recovery-page--wyg .recovery-section > ol,
.recovery-page--wyg .recovery-section > .recovery-faq-list,
.recovery-page--wyg .recovery-table-wrap,
.recovery-page--wyg .recovery-proof,
.recovery-page--wyg .recovery-screenshot-viewer,
.recovery-page--wyg .recovery-screenshot-viewer + figcaption,
.recovery-page--wyg .recovery-note,
.recovery-page--wyg .recovery-final-cta,
.recovery-page--wyg .recovery-before-after {
  width: 100%;
  max-width: none;
}

.recovery-final-cta {
  width: min(100%, var(--recovery-copy-width));
  margin-top: 28px;
}

.recovery-ideas-grid {
  display: grid;
  gap: 0;
  width: 100%;
}

.recovery-idea {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  padding: clamp(32px, 5vw, 58px) 0;
  border-top: 1px solid var(--line);
}

.recovery-idea:first-child {
  border-top: 0;
  padding-top: 12px;
}

.recovery-idea:nth-child(even) .recovery-idea__media {
  order: 2;
}

.recovery-idea__media img {
  aspect-ratio: 3 / 2;
}

.recovery-idea__copy {
  min-width: 0;
}

.recovery-idea__copy h3 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.recovery-idea__copy p,
.recovery-idea__copy li {
  font-size: 16px;
  line-height: 1.58;
}

.recovery-idea__copy ul {
  margin: 0 0 16px;
  padding-left: 21px;
}

.recovery-idea__copy li + li {
  margin-top: 6px;
}

.recovery-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  width: min(100%, 1040px);
  margin-top: 10px;
}

.recovery-step {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.recovery-step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.28;
}

.recovery-step p:last-child {
  margin-bottom: 0;
}

.recovery-before-after {
  width: min(100%, 1040px);
  margin-top: 26px;
}

.recovery-before-after img {
  aspect-ratio: 80 / 27;
}

@media (max-width: 980px) {
  .recovery-hero,
  .recovery-page--wyg .recovery-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .recovery-hero__copy {
    max-width: 820px;
  }

  .recovery-idea {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .recovery-page {
    width: min(100%, calc(100vw - 20px));
    padding-top: 0;
    padding-bottom: 36px;
  }

  .recovery-page .style-page__breadcrumbs {
    margin: 14px 0 10px;
  }

  .recovery-hero {
    gap: 22px;
    padding: 18px 0 34px;
  }

  .recovery-hero h1 {
    font-size: clamp(34px, 10.2vw, 42px);
    line-height: 1.04;
  }

  .recovery-hero__copy p,
  .recovery-section p,
  .recovery-section li {
    font-size: 16px;
    line-height: 1.6;
  }

  .recovery-primary-cta {
    width: 100%;
  }

  .recovery-page--ideas .recovery-hero__media img {
    aspect-ratio: 3 / 4;
  }

  .recovery-section {
    padding: 34px 0;
  }

  .recovery-section h2 {
    font-size: 28px;
  }

  .recovery-proof {
    margin-top: 22px;
  }

  .recovery-screenshot-viewer {
    margin-top: 22px;
  }

  .recovery-screenshot-viewer img {
    width: 760px;
    max-width: none;
  }

  .recovery-table-wrap {
    margin-top: 20px;
  }

  .recovery-idea,
  .recovery-idea:first-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 34px 0;
  }

  .recovery-idea:nth-child(even) .recovery-idea__media,
  .recovery-idea__media {
    order: 0;
  }

  .recovery-idea__copy {
    order: 1;
  }

  .recovery-idea__copy h3 {
    font-size: 25px;
  }

  .recovery-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .recovery-step {
    padding: 18px 0;
  }

  .recovery-faq-list details p {
    margin-right: 0;
  }
}

@media (max-width: 390px) {
  .recovery-page {
    width: min(100%, calc(100vw - 16px));
  }

  .recovery-hero h1 {
    font-size: 33px;
  }

  .recovery-section h2 {
    font-size: 26px;
  }

  .recovery-idea__copy h3 {
    font-size: 23px;
  }
}
