/* Five reference-led sections; hero and shared service components keep their styles.
   Cards reflow 1 → 2 → 4; dark compositions stack before becoming three columns. */
.recovered-page--digital-strategiya .ds-section {
  --ds-surface:#fff;
  --ds-ink:#0c1117;
  --ds-muted:#53616b;
  --ds-line:#e1e6e9;
  --ds-accent:#168725;
  --ds-lime:#acfa40;
  --ds-gap:24px;
  padding-block:clamp(56px, 3.5vw, 80px);
  color:var(--ds-ink);
  background:var(--ds-surface);
}
/* Separate the two light introductory blocks before the dark benefits. */
.recovered-page--digital-strategiya .ds-section.ds-formats {
  --ds-surface:#f5f6f7;
}
.ds-section *, .ds-section *::before, .ds-section *::after { box-sizing:border-box; }
.ds-section .ds-head { margin:0 0 36px; max-width:none; text-align:left; }
.ds-section .ds-head h2 { margin:18px 0 0; color:inherit; text-align:left; }
.ds-section .ds-head p { max-width:760px; margin:18px 0 0; color:var(--ds-muted); font-size:16px; line-height:1.55; }
.ds-section .rs-kicker { color:var(--ds-accent); }
.ds-section .rs-kicker::before { background:#36d92d; }
.ds-section figure { margin:0; }
.ds-section img { display:block; object-fit:contain; }
.ds-number { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid #62cc57; border-radius:11px; color:var(--ds-accent); font-size:16px; font-weight:800; line-height:1; }
.ds-audience-grid, .ds-formats-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--ds-gap); }
.ds-audience-card { position:relative; min-width:0; min-height:224px; padding:20px; border:1px solid var(--ds-line); border-radius:20px; background:linear-gradient(160deg,#fff 50%,#f7f8f9); box-shadow:0 4px 12px rgb(12 17 23 / .025); isolation:isolate; }
.ds-audience-card__copy { position:relative; z-index:2; max-width:56%; }
.ds-audience-card h3 { margin:16px 0 12px; }
.ds-audience-card p { margin:0; font-size:15px; line-height:1.5; color:var(--ds-muted); }
.ds-audience-card img { position:absolute; right:4px; bottom:6px; width:53%; height:calc(100% - 12px); object-position:right bottom; z-index:1; }
.ds-audience-card:nth-child(4) img { width:51%; right:8px; }
.ds-audience-card:nth-child(6) .ds-audience-card__copy { max-width:62%; }
.ds-audience-card:nth-child(6) img { width:49%; right:0; }
/* Large composition cards retain a separate heading scale, as in the mockup. */
.ds-format-card { position:relative; min-width:0; padding:24px 24px 0; border:1px solid var(--ds-line); border-radius:22px; background:linear-gradient(155deg,#fff 60%,#f7f8f9); }
.ds-format-card__copy { position:relative; z-index:2; }
.ds-format-card .ds-number { width:48px; height:48px; background:rgb(88 230 42 / .1); border:0; border-radius:13px; font-size:20px; }
.ds-format-card h3 { margin:18px 0; }
.ds-format-card p { margin:0; color:var(--ds-muted); font-size:16px; line-height:1.5; }
.ds-format-card img { position:relative; width:100%; height:240px; margin-top:12px; object-position:center bottom; }
.ds-section.ds-dark { --ds-surface:#0b1011; --ds-ink:#fff; --ds-muted:#b3babe; --ds-line:#303739; --ds-accent:var(--ds-lime); padding-block:clamp(72px,5vw,112px); background:radial-gradient(ellipse at 45% 58%,#1d2223 0,transparent 58%),#0b1011; }
.ds-dark-grid { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:32px; }
.ds-dark .ds-head { margin:0; }
.ds-dark .ds-head p { margin-top:32px; }
.ds-dark .rs-kicker::before { background:var(--ds-lime); }
.ds-dark-visual { min-width:0; }
.ds-dark-visual img { width:100%; height:auto; max-height:640px; object-position:center; }
.ds-feature-list { list-style:none; padding:0; margin:0; }
.ds-feature-list li { display:grid; grid-template-columns:56px minmax(0,1fr); gap:22px; align-items:start; padding:24px 0; border-bottom:1px solid var(--ds-line); }
.ds-feature-list li:first-child { padding-top:0; }
.ds-feature-list li:last-child { border-bottom:0; padding-bottom:0; }
.ds-feature__icon { display:grid; place-items:center; width:56px; height:56px; border:1px solid #3d4545; border-radius:16px; background:linear-gradient(145deg,#202628,#101516); box-shadow:inset 0 1px 1px rgb(255 255 255 / .06); color:var(--ds-lime); }
.ds-feature__number { display:block; margin:0 0 7px; color:var(--ds-lime); font-size:16px; font-weight:800; line-height:1; }
.ds-feature-list h3 { margin:0 0 10px; }
.ds-feature-list p { margin:0; font-size:16px; line-height:1.55; color:var(--ds-muted); }
.ds-guarantees .ds-feature-list li { align-items:start; padding-block:36px; }
.ds-guarantees .ds-feature-list li:first-child { padding-top:0; }
.ds-guarantees .ds-feature-list li:last-child { padding-bottom:0; }
.ds-guarantees .ds-feature__icon { border-color:#34452a; background:linear-gradient(145deg,#152019,#0b1011); }
.ds-steps { display:grid; grid-template-columns:minmax(0,1fr); list-style:none; margin:0; padding:0; }
.ds-steps li { min-width:0; }
.ds-steps figure { height:220px; display:flex; align-items:flex-end; justify-content:center; }
.ds-steps figure img { width:100%; height:100%; max-width:340px; object-position:center bottom; }
.ds-step__copy { padding:24px; border-top:1px solid var(--ds-line); background:linear-gradient(#f4f5f6,transparent 88%); }
.ds-step__copy .ds-number { width:42px; height:32px; border:0; border-radius:11px; background:rgb(114 225 25 / .15); color:#137b31; }
.ds-step__copy h3 { margin:18px 0 10px; }
.ds-step__copy p { margin:0; color:var(--ds-muted); font-size:16px; line-height:1.5; }
.ds-process-result { display:flex; align-items:center; gap:18px; width:fit-content; margin:30px 0 0; padding:16px 22px 16px 16px; border-radius:15px; background:#f7f8f9; color:var(--ds-muted); font-size:16px; line-height:1.5; }
.ds-process-result>span:first-child { flex:0 0 36px; color:#16b533; }
.ds-process-result strong { color:#137522; }
/* At tablet widths the object and text share each card; all text remains readable. */
@media(min-width:640px) {
  .ds-audience-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ds-format-card { min-height:340px; padding:28px; }
  .ds-format-card__copy { max-width:43%; }
  .ds-format-card img { position:absolute; right:18px; bottom:18px; width:50%; height:calc(100% - 44px); margin:0; object-position:right center; }
  .ds-steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 0; }
  .ds-step__copy { min-height:210px; border-right:1px solid var(--ds-line); }
  .ds-steps li:nth-child(2n) .ds-step__copy { border-right:0; }
}
@media(min-width:1000px) {
  .ds-formats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .ds-format-card { min-height:370px; padding:28px; }
  .ds-format-card__copy { max-width:44%; }
  .ds-format-card img { width:50%; }
  .ds-dark-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px 32px; }
  .ds-dark-visual { grid-column:2; grid-row:1; }
  .ds-feature-list { grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 40px; }
  .ds-feature-list li:first-child { padding-top:24px; }
  .ds-feature-list li:nth-last-child(-n+2) { border-bottom:0; }
  .ds-guarantees .ds-feature-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }
  .ds-guarantees .ds-feature-list li { padding:0; border:0; }
  .ds-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ds-steps li:nth-child(2n) .ds-step__copy { border-right:1px solid var(--ds-line); }
  .ds-steps li:nth-child(3n) .ds-step__copy { border-right:0; }
}
@media(min-width:1280px) {
  .ds-audience-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
  .ds-dark-grid { grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr) minmax(0,1fr); gap:32px; }
  .ds-dark-visual { grid-column:2; grid-row:1; }
  /* Keep the entire object inside its column, clear of neighbouring icons. */
  .ds-dark-visual img { width:100%; max-width:100%; margin-inline:0; }
  .ds-feature-list, .ds-guarantees .ds-feature-list { grid-column:3; grid-row:1; display:block; }
  .ds-feature-list li:first-child { padding-top:0; }
  .ds-feature-list li:nth-last-child(2) { border-bottom:1px solid var(--ds-line); }
  .ds-guarantees .ds-feature-list li { padding:36px 0; border-bottom:1px solid var(--ds-line); }
  .ds-guarantees .ds-feature-list li:first-child { padding-top:0; }
  .ds-guarantees .ds-feature-list li:last-child { border-bottom:0; padding-bottom:0; }
  .ds-steps { grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; }
  .ds-steps figure { height:240px; }
  .ds-steps li .ds-step__copy { min-height:198px; padding:24px 26px 0; border-right:1px solid var(--ds-line); }
  .ds-steps li:last-child .ds-step__copy { border-right:0; }
  .ds-steps li:first-child .ds-step__copy { border-top-left-radius:18px; }
  .ds-steps li:last-child .ds-step__copy { border-top-right-radius:18px; }
}
@media(min-width:1500px) {
  .ds-audience-card { min-height:216px; }
  .ds-format-card { min-height:360px; }
  .ds-feature-list li { grid-template-columns:64px minmax(0,1fr); gap:26px; }
  .ds-feature__icon { width:64px; height:64px; }
}
/* The site's existing typography layer remains authoritative for the rest of the page. */
@layer service-type {
  html body main .ds-format-card h3 { font-size:clamp(1.5rem,1.25rem + .6vw,1.875rem)!important; line-height:1.15!important; }
  html body main .ds-section:not(.ds-dark) .ds-head h2>span { color:#159f24!important; -webkit-text-fill-color:currentColor!important; }
  html body main .ds-section.ds-dark h2>span,
  html body main #guarantees.ds-section.ds-dark h2>span { color:#acfa40!important; -webkit-text-fill-color:currentColor!important; text-shadow:none!important; }
  html body main .ds-section.ds-dark h2 { color:#fff!important; }
  html body main .ds-head h2 { max-width:none!important; text-wrap:initial!important; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .ds-audience-card img,.ds-format-card img { transition:transform 240ms cubic-bezier(.2,.8,.2,1); }
  .ds-audience-card:hover img,.ds-format-card:hover img { transform:translateY(-3px); }
}
@media(prefers-reduced-motion:reduce) { .ds-section img { transition:none!important; } }

/* Hero CTA uses the same default and hover colors as the other service banners. */
.recovered-page--digital-strategiya .rs-hero__actions .rs-button {
  background: #071925;
  color: #fff;
  transform: none;
  transition: background .2s ease, color .2s ease;
}
.recovered-page--digital-strategiya .rs-hero__actions .rs-button:hover {
  background: #64ee3f;
  color: #071925;
  transform: none;
}
