/*
 * Directed Edit Suite
 * Shared donor-led layer for the seven capability routes.
 */

:root {
  --paper: #f3f4f2;
  --paper-deep: #dfe3e5;
  --white: #fbfbf9;
  --ink: #0b0d11;
  --muted: #374052;
  --line: rgba(11, 13, 17, 0.16);
  --blue: #3157f2;
  --blue-hover: #2348dd;
  --dark: #111318;
  --radius: 14px;
  --container: 1400px;
  --gutter: clamp(22px, 5vw, 72px);
  --section: clamp(78px, 7.4vw, 112px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-stage: 0 28px 72px rgba(19, 25, 43, 0.18);
}

body[data-design="directed-edit-suite"] {
  color: var(--ink);
  background: var(--paper);
}

body[data-design="directed-edit-suite"] h1,
body[data-design="directed-edit-suite"] h2 {
  max-width: 15ch;
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 0.99;
  text-wrap: balance;
}

body[data-design="directed-edit-suite"] h1 {
  font-size: clamp(50px, 4.8vw, 72px);
}

body[data-design="directed-edit-suite"] h2 {
  font-size: clamp(42px, 4.2vw, 64px);
}

body[data-design="directed-edit-suite"] p {
  color: var(--muted);
}

/* Shared chrome */

body[data-design="directed-edit-suite"] .feature-header {
  background: rgba(243, 244, 242, 0.92);
  border-bottom-color: rgba(11, 13, 17, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
}

body[data-design="directed-edit-suite"] .feature-header__inner {
  height: 72px;
}

body[data-design="directed-edit-suite"] .feature-wordmark {
  width: 118px;
  min-height: 44px;
}

body[data-design="directed-edit-suite"] .feature-nav a {
  font-size: 13px;
  font-weight: 650;
}

body[data-design="directed-edit-suite"] .feature-button {
  min-height: 48px;
  padding-inline: 18px;
  gap: 18px;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(33, 64, 183, 0.2);
  font-size: 13px;
  font-weight: 700;
}

body[data-design="directed-edit-suite"] .feature-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(33, 64, 183, 0.25);
}

body[data-design="directed-edit-suite"] .feature-button:active {
  transform: translateY(0) scale(0.985);
}

body[data-design="directed-edit-suite"] .feature-button--small {
  min-height: 44px;
  padding-inline: 15px;
  font-size: 12px;
}

/* Every route opens with the offer and a route-specific working artifact. */

body[data-design="directed-edit-suite"] .feature-hero {
  padding-block: clamp(46px, 5vw, 68px) clamp(70px, 7vw, 96px);
  background: radial-gradient(circle at 72% 7%, rgba(49, 87, 242, 0.07), transparent 28%), var(--paper);
}

body[data-design="directed-edit-suite"] .feature-hero__grid {
  grid-template-columns: minmax(390px, 0.78fr) minmax(620px, 1.22fr);
  align-items: center;
  gap: clamp(44px, 5vw, 78px);
}

body[data-design="directed-edit-suite"] .feature-hero__copy,
body[data-design="directed-edit-suite"] .feature-hero__demo {
  min-width: 0;
  grid-column: auto;
  grid-row: auto;
}

body[data-design="directed-edit-suite"] .feature-hero__copy {
  padding-inline-start: 0;
}

body[data-design="directed-edit-suite"] .feature-hero__copy h1 {
  max-width: 10ch;
}

body[data-design="directed-edit-suite"] .feature-hero__copy > p {
  max-width: 48ch;
  margin-block-start: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.52;
}

body[data-design="directed-edit-suite"] .feature-hero__copy .feature-button {
  margin-block-start: 28px;
}

body[data-design="directed-edit-suite"] .route-artifact {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-stage);
}

body[data-design="directed-edit-suite"] .route-artifact__bar,
body[data-design="directed-edit-suite"] .route-artifact__meta {
  background: #0c0e13;
}

body[data-design="directed-edit-suite"] .route-artifact__bar {
  min-height: 54px;
}

body[data-design="directed-edit-suite"] .route-artifact__meta {
  min-height: 48px;
}

/* Overview uses an editorial image-to-text relationship. */

body[data-design="directed-edit-suite"] .feature-overview,
body[data-design="directed-edit-suite"] .feature-usecases,
body[data-design="directed-edit-suite"] .feature-faq,
body[data-design="directed-edit-suite"] .feature-final {
  padding-block: var(--section);
}

body[data-design="directed-edit-suite"] .feature-overview {
  background: #e5e8e6;
}

body[data-design="directed-edit-suite"] .overview-grid {
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  align-items: center;
  gap: clamp(44px, 6vw, 92px);
}

body[data-design="directed-edit-suite"] .overview-image,
body[data-design="directed-edit-suite"] .overview-copy {
  grid-column: auto;
  grid-row: auto;
}

body[data-design="directed-edit-suite"] .overview-copy {
  padding-block-start: 0;
}

body[data-design="directed-edit-suite"] .overview-image {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-stage);
}

body[data-design="directed-edit-suite"] .overview-image img {
  min-height: 590px;
  object-fit: cover;
}

body[data-design="directed-edit-suite"] .overview-image figcaption {
  inset: auto auto 20px 20px;
  padding: 10px 13px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 13, 17, 0.78);
  backdrop-filter: blur(12px);
}

body[data-design="directed-edit-suite"] .overview-copy h2 {
  max-width: 10ch;
}

body[data-design="directed-edit-suite"] .overview-copy > p {
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.56;
}

body[data-design="directed-edit-suite"] .capability-list {
  margin-block-start: 34px;
  border-top: 1px solid var(--line);
}

body[data-design="directed-edit-suite"] .capability-list > div {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

body[data-design="directed-edit-suite"] .capability-list small {
  color: var(--muted);
}

/* Process is one dark production passage and one light output surface. */

body[data-design="directed-edit-suite"] .feature-process {
  padding-block: var(--section);
  color: var(--white);
  background: var(--dark);
}

body[data-design="directed-edit-suite"] .feature-process h2 {
  max-width: 16ch;
  color: var(--white);
}

body[data-design="directed-edit-suite"] .process-heading {
  margin-block-end: 42px;
}

body[data-design="directed-edit-suite"] .process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
}

body[data-design="directed-edit-suite"] .process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-design="directed-edit-suite"] .process-steps li {
  min-height: 178px;
  padding: 24px 24px 20px 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

body[data-design="directed-edit-suite"] .process-steps li:not(:first-child) {
  padding-inline-start: 24px;
}

body[data-design="directed-edit-suite"] .process-steps li:last-child {
  border-right: 0;
}

body[data-design="directed-edit-suite"] .process-steps li > span {
  color: #9eacff;
  font-size: 10px;
}

body[data-design="directed-edit-suite"] .process-steps h3 {
  color: var(--white);
}

body[data-design="directed-edit-suite"] .process-steps p {
  color: #c8d1ee;
}

body[data-design="directed-edit-suite"] .process-console {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.24);
}

body[data-design="directed-edit-suite"] .process-console__head {
  min-height: 58px;
}

/* Use cases read as one photographic story with three grounded notes. */

body[data-design="directed-edit-suite"] .feature-usecases {
  background: var(--paper-bright);
}

body[data-design="directed-edit-suite"] .feature-usecases h2 {
  max-width: 11ch;
}

body[data-design="directed-edit-suite"] .feature-usecases .feature-container {
  display: block;
}

body[data-design="directed-edit-suite"] .usecases-photo {
  margin-block-start: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-stage);
}

body[data-design="directed-edit-suite"] .usecases-photo img {
  min-height: 0;
  max-height: 620px;
  object-fit: cover;
}

body[data-design="directed-edit-suite"] .usecase-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: auto;
  grid-row: auto;
  gap: 0;
  margin-block-start: 0;
  border-top: 0;
}

body[data-design="directed-edit-suite"] .usecase-notes article {
  min-height: 150px;
  padding: 24px 28px 0 0;
  border: 0;
  border-right: 1px solid var(--line);
}

body[data-design="directed-edit-suite"] .usecase-notes article:not(:first-child) {
  padding-inline-start: 28px;
}

body[data-design="directed-edit-suite"] .usecase-notes article:last-child {
  border-right: 0;
}

/* Control stays compact and evidence-led. */

body[data-design="directed-edit-suite"] .feature-control {
  padding-block: var(--section);
  background: #e5e8e6;
}

body[data-design="directed-edit-suite"] .control-grid {
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  align-items: end;
  gap: clamp(48px, 7vw, 108px);
}

body[data-design="directed-edit-suite"] .control-copy h2 {
  max-width: 9ch;
}

body[data-design="directed-edit-suite"] .control-copy {
  display: block;
  grid-column: auto;
  grid-row: auto;
}

body[data-design="directed-edit-suite"] .control-copy > p {
  margin-block-start: 24px;
}

body[data-design="directed-edit-suite"] .control-sheet {
  grid-column: auto;
  grid-row: auto;
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow-stage);
}

body[data-design="directed-edit-suite"] .control-sheet__top,
body[data-design="directed-edit-suite"] .control-row,
body[data-design="directed-edit-suite"] .control-sheet__foot {
  border-color: rgba(255, 255, 255, 0.15);
}

body[data-design="directed-edit-suite"] .control-row {
  color: #d8def2;
}

/* FAQ is a compact index. */

body[data-design="directed-edit-suite"] .feature-faq {
  background: var(--paper);
}

body[data-design="directed-edit-suite"] .faq-grid {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  align-items: start;
  gap: clamp(52px, 8vw, 120px);
}

body[data-design="directed-edit-suite"] .faq-heading {
  position: sticky;
  inset-block-start: 104px;
}

body[data-design="directed-edit-suite"] .faq-heading h2 {
  max-width: 9ch;
}

body[data-design="directed-edit-suite"] .faq-heading p {
  max-width: 32ch;
  color: var(--muted);
}

body[data-design="directed-edit-suite"] .feature-faq__list {
  border-top: 1px solid var(--line);
}

body[data-design="directed-edit-suite"] .feature-faq details {
  border-bottom: 1px solid var(--line);
}

body[data-design="directed-edit-suite"] .feature-faq summary {
  min-height: 76px;
  color: var(--ink);
  font-size: 17px;
}

body[data-design="directed-edit-suite"] .feature-faq__answer > p {
  max-width: 62ch;
  color: var(--muted);
}

/* Final image becomes the close, not another generic CTA panel. */

body[data-design="directed-edit-suite"] .feature-final {
  padding-block: clamp(66px, 6vw, 88px);
  background: #e6e8e6;
}

body[data-design="directed-edit-suite"] .final-panel {
  min-height: 560px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-stage);
}

body[data-design="directed-edit-suite"] .final-panel__copy {
  max-width: 520px;
}

body[data-design="directed-edit-suite"] .final-panel__copy h2 {
  max-width: 10ch;
  color: var(--white);
  font-size: clamp(42px, 4.2vw, 62px);
}

body[data-design="directed-edit-suite"] .final-panel__copy p {
  max-width: 42ch;
  color: #edf0fb;
}

body[data-design="directed-edit-suite"] .feature-footer {
  background: #0b0c10;
}

body[data-design="directed-edit-suite"] .feature-footer p {
  color: #aeb7cc;
}

/* One motion grammar: working artifacts open through a restrained mask. */

@media (prefers-reduced-motion: no-preference) {
  body[data-design="directed-edit-suite"] .feature-hero__demo.reveal,
  body[data-design="directed-edit-suite"] .process-console,
  body[data-design="directed-edit-suite"] .final-panel.reveal {
    clip-path: inset(0 0 9% 0 round var(--radius));
    transform: translateY(22px);
    opacity: 0.72;
    transition:
      clip-path 0.9s var(--ease),
      transform 0.8s var(--ease),
      opacity 0.65s var(--ease);
  }

  body[data-design="directed-edit-suite"] .feature-hero__demo.reveal.is-visible,
  body[data-design="directed-edit-suite"] .reveal.is-visible .process-console,
  body[data-design="directed-edit-suite"] .final-panel.reveal.is-visible {
    clip-path: inset(0 0 0 0 round var(--radius));
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  body[data-design="directed-edit-suite"] .feature-hero__grid,
  body[data-design="directed-edit-suite"] .overview-grid,
  body[data-design="directed-edit-suite"] .control-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-design="directed-edit-suite"] .feature-hero__copy,
  body[data-design="directed-edit-suite"] .overview-copy,
  body[data-design="directed-edit-suite"] .control-copy {
    max-width: 780px;
  }

  body[data-design="directed-edit-suite"] .overview-image img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body[data-design="directed-edit-suite"] .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-design="directed-edit-suite"] .process-steps li:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  body[data-design="directed-edit-suite"] .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  body[data-design="directed-edit-suite"] .faq-heading {
    position: static;
  }

  body[data-design="directed-edit-suite"] .faq-heading h2 {
    max-width: 13ch;
  }

  body[data-design="directed-edit-suite"] .process-console__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 18px;
    --section: 62px;
    --radius: 12px;
  }

  body[data-design="directed-edit-suite"] .feature-header__inner {
    height: 64px;
  }

  body[data-design="directed-edit-suite"] .feature-wordmark {
    width: 102px;
  }

  body[data-design="directed-edit-suite"] h1 {
    font-size: clamp(38px, 11vw, 46px);
    line-height: 1;
  }

  body[data-design="directed-edit-suite"] h2,
  body[data-design="directed-edit-suite"] .final-panel__copy h2 {
    font-size: clamp(32px, 9.2vw, 40px);
    line-height: 1.02;
  }

  body[data-design="directed-edit-suite"] .feature-button,
  body[data-design="directed-edit-suite"] .feature-button--small {
    width: max-content;
    min-height: 44px;
    padding-inline: 14px;
    gap: 12px;
    font-size: 12px;
  }

  body[data-design="directed-edit-suite"] .feature-hero {
    padding-block: 34px 48px;
  }

  body[data-design="directed-edit-suite"] .feature-hero__grid {
    gap: 34px;
  }

  body[data-design="directed-edit-suite"] .feature-hero__copy > p {
    margin-block-start: 20px;
    font-size: 16px;
  }

  body[data-design="directed-edit-suite"] .route-artifact__bar,
  body[data-design="directed-edit-suite"] .route-artifact__meta {
    min-height: 46px;
  }

  body[data-design="directed-edit-suite"] .overview-grid {
    gap: 32px;
  }

  body[data-design="directed-edit-suite"] .overview-image img {
    aspect-ratio: 4 / 3;
  }

  body[data-design="directed-edit-suite"] .process-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-design="directed-edit-suite"] .process-steps li,
  body[data-design="directed-edit-suite"] .process-steps li:not(:first-child) {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  body[data-design="directed-edit-suite"] .process-layout {
    gap: 30px;
  }

  body[data-design="directed-edit-suite"] .usecases-photo img {
    aspect-ratio: 4 / 3;
  }

  body[data-design="directed-edit-suite"] .usecase-notes {
    grid-template-columns: 1fr;
  }

  body[data-design="directed-edit-suite"] .usecase-notes article,
  body[data-design="directed-edit-suite"] .usecase-notes article:not(:first-child) {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-design="directed-edit-suite"] .feature-faq summary {
    min-height: 66px;
    font-size: 16px;
  }

  body[data-design="directed-edit-suite"] .final-panel {
    min-height: 520px;
  }

  body[data-design="directed-edit-suite"] .final-panel__copy {
    padding: 28px;
  }
}

@media (max-width: 370px) {
  body[data-design="directed-edit-suite"] .feature-wordmark {
    width: 94px;
  }

  body[data-design="directed-edit-suite"] .feature-button--small span {
    font-size: 0;
  }

  body[data-design="directed-edit-suite"] .feature-button--small span::after {
    content: "Начать";
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-design="directed-edit-suite"] .feature-hero__demo.reveal,
  body[data-design="directed-edit-suite"] .process-console,
  body[data-design="directed-edit-suite"] .final-panel.reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}
