/* DDR-P09-PROCESS «Как мы работаем» (digital.deladel.ru) — page styles.
 * Design: DDR-P09-PROCESS_DESIGN_v1.0 (previews 1440 / 1280 / 1024 / 390 / 360, sources/layout.json for sizes, line
 * heights and colours). Desktop composition from 800 px, one column below; the Shell keeps its own breakpoint (mobile
 * header ≤ 999 px) as published on /website-development/.
 * Part 1 (s3-*) = the accepted S3 Shell of the published /website-development/ (css/p04.css: header, sticky compaction,
 * mobile menu, buttons, footer, materials), renamed from p04-* to s3-*; sizes kept, gutters follow this page.
 * Part 2 (p09-*) = the blocks of this page. Every rule is scoped to .p09 / .s3-* / .p09-*.
 */

/* Nimbus Sans: unmodified urw-base35-fonts 20200910 files, GNU AGPL v3 — see ../assets/fonts/NOTICE.txt, LICENSE, COPYING.
   Same bytes as the package fonts and the fonts of the published S3 pages. Do not subset or convert them. */
@font-face { font-family: 'P09 Nimbus Sans'; src: url('../assets/fonts/NimbusSans-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'P09 Nimbus Sans'; src: url('../assets/fonts/NimbusSans-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

.p09 {
  --red: #f60019;
  --red-hover: #d90016;
  --red-pressed: #bc0013;
  --red-text: #e00017;            /* small red text and the step markers: 5.02:1 on white (#f60019 = 4.26:1) */
  --ink: #090c10;
  --muted: #4e6485;
  --muted-2: #465b78;
  --muted-dark: #c9d8e7;
  --placeholder: #657996;
  --focus: #3159ba;
  --disabled: #a4adb8;
  --rule: #d9dfe6;
  --line: #b8c5d5;
  --error: #b30018;
  --error-line: #bf0020;
  --pad: 56px;
  --header-h: 108px;
  --header-compact: 76px;
  --ease: 140ms ease;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'P09 Nimbus Sans', 'Nimbus Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 19px;
  line-height: 27px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
.p09 *, .p09 *::before, .p09 *::after { box-sizing: border-box; }
:where(.p09) img { display: block; max-width: 100%; height: auto; }
:where(.p09) :where(h1, h2, h3, p, ol, ul, figure, fieldset, legend) { margin: 0; padding: 0; }
:where(.p09) :where(ol, ul) { list-style: none; }
:where(.p09) fieldset { border: 0; min-width: 0; }
:where(.p09) a { color: inherit; }
:where(.p09) :where(button, input, textarea, select) { font: inherit; color: inherit; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .p09 *, .p09 *::before, .p09 *::after { transition: none !important; animation: none !important; }
}
.p09-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.p09 :focus { outline: none; }
.p09 :focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.p09 [tabindex="-1"]:focus-visible { outline: none; }

/* =====================================================================================================
 * Part 1 · S3 Shell (from /website-development/ css/p04.css)
 * ===================================================================================================== */
.s3-light { position: relative; background: #f2f2f1 url('../assets/scenes/light-satin.webp') 50% 50% / cover no-repeat; }
.s3-dark { position: relative; color: #fff; background: #101923 url('../assets/scenes/dark-satin.webp') 50% 50% / cover no-repeat; isolation: isolate; }
.s3-dark::before { content: ''; position: absolute; inset: 0; background: rgba(12, 20, 28, 0.86); z-index: -1; pointer-events: none; }

.s3-skip { position: absolute; left: 12px; top: -80px; z-index: 90; padding: 12px 18px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 17px; line-height: 22px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 16px rgba(9, 12, 16, 0.18); }
.s3-skip:focus { top: 12px; }

.s3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 7px; background: var(--red); color: #fff;
  font-size: 21px; line-height: 23px; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color var(--ease), color var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.s3-btn:hover { background: var(--red-hover); }
.s3-btn:active { background: var(--red-pressed); }
.s3-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 7px; }
.s3-btn[aria-disabled="true"], .s3-btn[disabled] { background: var(--disabled); color: var(--ink); cursor: not-allowed; }
.s3-btn--block { display: flex; width: 100%; }
@media (hover: none) { .s3-btn:hover { background: var(--red); } .s3-btn[aria-disabled="true"]:hover { background: var(--disabled); } }
.s3-icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.s3-header { position: sticky; top: 0; z-index: 30; height: var(--header-h); margin-bottom: calc(-1 * var(--header-h)); transition: background-color var(--ease), box-shadow var(--ease); }
.s3-header.is-scrolled { --header-h: var(--header-compact); background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 rgba(9, 12, 16, 0.08), 0 8px 24px rgba(9, 12, 16, 0.06); }
.s3-header__inner { display: flex; align-items: center; height: 100%; max-width: calc(1328px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.s3-brand { display: inline-flex; flex: none; align-items: center; min-height: 44px; }
.s3-header__brand .s3-brand__logo { width: 200px; height: auto; }
.s3-header.is-scrolled .s3-header__brand .s3-brand__logo { width: 152px; }
.s3-header__nav { display: flex; margin-left: auto; margin-right: 114px; }
.s3-header__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px 0 0; font-size: 19px; line-height: 27px; text-decoration: none; transition: color var(--ease); }
.s3-header__link:hover { color: var(--red); }
.s3-header__cta { min-width: 260px; }
.s3-header.is-scrolled .s3-header__cta { min-height: 48px; }
.s3-header__menu-btn { display: none; }

.s3-menu { position: fixed; inset: 0; z-index: 60; overflow-y: auto; padding: 0 24px 32px; background: #f2f2f1 url('../assets/scenes/light-satin.webp') 50% 50% / cover no-repeat; }
.s3-menu[hidden] { display: none; }
.s3-menu__bar { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.s3-menu__brand .s3-brand__logo { width: 140px; }
.s3-menu__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer; }
.s3-menu__close .s3-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.s3-menu__nav { display: flex; flex-direction: column; }
.s3-menu__link { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid #c3cfdc; font-size: 28px; line-height: 36px; font-weight: 700; text-decoration: none; }
.s3-menu__cta { margin-top: 34px; min-height: 52px; font-size: 19px; }
.s3-lock { overflow: hidden; }

.s3-footer { padding: 30px 0 24px; }
.s3-footer__inner { display: grid; grid-template-columns: 420px minmax(0, 1fr); row-gap: 14px; }
.s3-footer__brand .s3-brand__logo { width: 180px; }
.s3-footer__tagline { margin-top: 12px; font-size: 17px; line-height: 24px; color: var(--muted); }
.s3-footer__nav { display: grid; grid-auto-flow: column; grid-auto-columns: 227px; align-self: start; margin-top: 14px; }
.s3-footer__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; line-height: 26px; text-decoration: none; transition: color var(--ease); }
.s3-footer__link:hover { color: var(--red); }
.s3-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 12px; border-top: 1px solid #c3cfdc; font-size: 15px; line-height: 20px; color: var(--muted); }
.s3-footer__links a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.s3-footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================================================
 * Part 2 · blocks
 * ===================================================================================================== */
.p09-wrap { width: 100%; max-width: calc(1328px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.p09-section { scroll-margin-top: calc(var(--header-compact) + 4px); }
.p09-main:focus { outline: none; }
.p09-accent { color: var(--red); }
.p09-h2 { font-size: 46px; line-height: 51px; font-weight: 700; }
.p09-intro { max-width: 1000px; margin-top: 22px; font-size: 20px; line-height: 28px; color: var(--muted); }
.p09-note { font-size: 17px; line-height: 24px; color: var(--muted); }
.p09-label { font-size: 15px; line-height: 21px; font-weight: 700; color: var(--muted); }
.p09-label--accent { color: var(--red-text); }
.p09-dash { display: block; width: 44px; height: 4px; background: var(--red); }

/* text links with ↗ (Посмотреть этапы, services, cases) */
.p09-textlink { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 9px 0; font-size: 18px; line-height: 25px; font-weight: 700; color: var(--muted); text-decoration: none; transition: color var(--ease); }
.p09-textlink span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.p09-textlink:hover { color: var(--red); }
.p09-arrow { font-weight: 400; }

/* ---------- B01 hero ---------- */
.p09-hero { padding: calc(var(--header-h) + 20px) 0 58px; }
.p09-hero__grid { display: grid; grid-template-columns: minmax(0, 653fr) minmax(0, 675fr); align-items: start; }
.p09-hero__text { padding-top: 12px; }
.p09-eyebrow { font-size: 15px; line-height: 21px; font-weight: 700; color: var(--muted); }
.p09-hero__title { margin-top: 20px; font-size: 64px; line-height: 66px; font-weight: 700; letter-spacing: -0.003em; }
.p09-hero__title .p09-accent { display: block; }
.p09-hero__lead { margin-top: 24px; font-size: 23px; line-height: 33px; color: var(--muted); }
.p09-hero__actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 29px; margin-top: 28px; }
.p09-hero__cta { min-width: 280px; }
.p09-hero__note { margin-top: 16px; font-size: 17px; line-height: 24px; color: var(--muted); }
.p09-hero__art { display: block; margin: 0 -4px 0 14px; align-self: start; padding-top: 0; }
.p09-hero__art img { width: 100%; height: auto; object-fit: contain; }

/* ---------- B02 engagement modes ---------- */
.p09-modes { padding: 80px 0 80px; background: #fff; }
.p09-modes__main { display: grid; grid-template-columns: minmax(0, 635fr) minmax(0, 609fr); column-gap: 84px; margin-top: 34px; }
.p09-mode__title { margin-top: 12px; font-size: 29px; line-height: 32px; font-weight: 700; }
.p09-mode__text { margin-top: 16px; font-size: 19px; line-height: 27px; color: var(--muted); }
.p09-mode--work { position: relative; padding-bottom: 14px; }
.p09-mode--work::before { content: ''; position: absolute; left: -26px; top: 0; bottom: 0; width: 2px; background: var(--red); }
.p09-mode--paid { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); column-gap: 38px; margin-top: 18px; padding: 24px 26px 26px; background: #f2f5f8; border-top: 2px solid #adbdce; }
.p09-mode--paid .p09-mode__title { font-size: 27px; line-height: 30px; }
.p09-mode--paid .p09-mode__text { margin-top: 0; }
.p09-modes__note { margin-top: 31px; padding-top: 21px; border-top: 1px solid var(--rule); }

/* ---------- B03 steps ---------- */
.p09-steps { padding: 80px 0 83px; background: #f7f8fa; }
.p09-steps__list { margin-top: 34px; }
.p09-step { --title-w: 260px; --result-w: 280px; position: relative; display: grid; grid-template-columns: 46px 26px var(--title-w) 28px minmax(0, 1fr) 34px var(--result-w); align-items: start; padding-bottom: 31px; }
.p09-step:last-child { padding-bottom: 0; }
.p09-step__num { grid-column: 1; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red-text); color: #fff; font-size: 18px; line-height: 18px; font-weight: 700; }
.p09-step:not(:last-child)::before { content: ''; position: absolute; left: 22.5px; top: 46px; bottom: 0; width: 1px; background: #f2a0aa; }
.p09-step__title { grid-column: 3; padding-top: 4px; font-size: 24px; line-height: 29px; font-weight: 700; }
.p09-step__text { grid-column: 5; font-size: 19px; line-height: 27px; color: var(--muted); }
.p09-step__result { grid-column: 7; padding: 18px 18px 15px; border-radius: 4px; background: #eaf0f5; font-size: 18px; line-height: 26px; color: #344b6a; }

/* ---------- B04 responsibilities ---------- */
.p09-roles { padding: 80px 0 80px; }
.p09-roles__pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 58px; margin-top: 34px; }
.p09-role--team { position: relative; }
.p09-role--team::before { content: ''; position: absolute; left: -29px; top: 0; height: 160px; width: 1px; background: #c2cad5; }
.p09-role--client .p09-role__title, .p09-role--team .p09-role__title { font-size: 32px; line-height: 35px; }
.p09-role__title { font-size: 26px; line-height: 31px; font-weight: 700; }
.p09-role__text { margin-top: 15px; font-size: 20px; line-height: 28px; color: var(--muted); }
.p09-role--staff { margin-top: 30px; max-width: 1100px; }
.p09-role--staff .p09-role__text { margin-top: 13px; }
.p09-roles__subs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 58px; margin-top: 32px; padding-top: 29px; border-top: 1px solid var(--rule); }
.p09-sub__title { font-size: 26px; line-height: 31px; font-weight: 700; }
.p09-sub__text { margin-top: 14px; font-size: 20px; line-height: 28px; color: var(--muted); }
.p09-trust { margin-top: 38px; padding-left: 21px; border-left: 4px solid var(--red); }
.p09-trust__title { font-size: 24px; line-height: 29px; font-weight: 700; }
.p09-trust__text { margin-top: 14px; font-size: 18px; line-height: 26px; color: var(--muted); }
.p09-trust__link { margin-top: 4px; }

/* ---------- B05 control and acceptance ---------- */
.p09-control { padding: 80px 0 89px; }
.p09-control__title { max-width: 840px; color: #fff; }
.p09-control__grid { display: grid; grid-template-columns: minmax(0, 693fr) minmax(0, 567fr); column-gap: 68px; align-items: start; }
.p09-control__items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 38px; row-gap: 38px; margin-top: 40px; }
.p09-control__item { padding-top: 19px; position: relative; }
.p09-control__item::before { content: ''; position: absolute; left: 0; top: 0; width: 36px; height: 3px; background: var(--red); }
.p09-control__item-title { font-size: 26px; line-height: 30px; font-weight: 700; color: #fff; }
.p09-control__item-text { margin-top: 15px; font-size: 19px; line-height: 27px; color: var(--muted-dark); }
.p09-control__report { position: relative; margin-top: -30px; }
.p09-control__art { width: 100%; height: auto; object-fit: contain; }
.p09-example { position: relative; margin-top: -16px; padding: 30px 30px 21px; border-radius: 8px; background: #fff; color: var(--ink); }
.p09-example__label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--muted); }
.p09-example__title { margin-top: 14px; font-size: 25px; line-height: 29px; font-weight: 700; }
.p09-example__text { margin-top: 16px; font-size: 18px; line-height: 26px; color: var(--muted); }
.p09-example__note { margin-top: 16px; font-size: 16px; line-height: 23px; color: var(--muted); }

/* ---------- B06 independent scope ---------- */
.p09-scope { padding: 80px 0 80px; background: #fff; }
.p09-scope__list { margin-top: 34px; }
.p09-scope__row { --title-w: 300px; --links-w: 280px; display: grid; grid-template-columns: var(--title-w) minmax(0, 1fr) calc(var(--links-w) + 3px); column-gap: 32px; padding: 24px 0 23px; border-top: 1px solid var(--rule); }
.p09-scope__links { padding-left: 3px; }
.p09-scope__title { font-size: 25px; line-height: 29px; font-weight: 700; }
.p09-scope__text { font-size: 19px; line-height: 27px; color: var(--muted); }
.p09-scope__links { display: flex; flex-direction: column; align-items: flex-start; }
.p09-scope__links .p09-textlink { min-height: 0; padding: 0 0 12px; align-items: flex-start; }
.p09-scope__note { margin-top: 10px; }

/* ---------- B07 commercial terms ---------- */
.p09-terms { padding: 80px 0 80px; }
.p09-terms__grid { display: grid; grid-template-columns: minmax(0, 532fr) minmax(0, 706fr); column-gap: 90px; align-items: start; }
.p09-terms__cta { min-width: min(285px, 100%); margin-top: 35px; }
.p09-terms__items { position: relative; }
.p09-terms__items::before { content: ''; position: absolute; left: -28px; top: 0; height: 500px; width: 2px; background: #efb7be; }
.p09-term + .p09-term { margin-top: 29px; }
.p09-term__title { font-size: 26px; line-height: 30px; font-weight: 700; }
.p09-term__text { margin-top: 14px; font-size: 19px; line-height: 27px; color: var(--muted); }

/* ---------- B08 FAQ ---------- */
.p09-faq { padding: 80px 0 80px; background: #fff; }
.p09-faq__grid { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); column-gap: 90px; align-items: start; }
.p09-faq__list { border-top: 1px solid var(--rule); }
.p09-faq__item { border-bottom: 1px solid var(--rule); }
.p09-faq__q { font-size: inherit; font-weight: inherit; }
.p09-faq__btn { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; align-items: start; width: 100%; min-height: 69px; padding: 22px 0 20px; border: 0; background: transparent; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.p09-faq__btn:focus-visible { outline-offset: 2px; }
.p09-faq__num { padding-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.p09-faq__question { font-size: 21px; line-height: 27px; font-weight: 700; color: var(--ink); transition: color var(--ease); }
.p09-faq__btn:hover .p09-faq__question { color: var(--red); }
.p09-faq__icon { position: relative; justify-self: end; width: 20px; height: 27px; }
.p09-faq__icon::before, .p09-faq__icon::after { content: ''; position: absolute; left: 4px; top: 10px; width: 12px; height: 1.5px; background: var(--muted); transition: transform var(--ease), background-color var(--ease); }
.p09-faq__icon::after { transform: rotate(90deg); }
.p09-faq__item.is-open .p09-faq__icon::before { transform: rotate(45deg); background: var(--red); }
.p09-faq__item.is-open .p09-faq__icon::after { transform: rotate(135deg); background: var(--red); }
.p09-faq__answer { padding: 0 28px 24px 42px; margin-top: -1px; }
.p09-faq__answer[hidden] { display: none; }
.p09-faq__answer p { font-size: 19px; line-height: 27px; color: var(--muted); }

/* ---------- B09 contact ---------- */
.p09-contact { padding: 80px 0 80px; }
.p09-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 100px; align-items: start; }
.p09-contact__title { margin-top: 22px; font-size: 55px; line-height: 61px; font-weight: 700; color: #fff; }
.p09-contact__lead { margin-top: 26px; font-size: 22px; line-height: 31px; color: var(--muted-dark); }
.p09-contact__note { margin-top: 24px; font-size: 18px; line-height: 26px; color: var(--muted-dark); }
.p09-card { border-radius: 10px; background: #fff; color: var(--ink); padding: 32px; }

.p09-form__legend { font-size: 14px; line-height: 20px; color: var(--muted); }
.p09-field { margin-top: 23px; }
.p09-form__legend + .p09-field { margin-top: 23px; }
.p09-field__label { display: block; font-size: 18px; line-height: 26px; font-weight: 700; color: var(--ink); }
.p09-req { font-weight: 400; }
.p09-opt { margin-left: 8px; font-size: 15px; line-height: 21px; font-weight: 400; color: var(--muted); white-space: nowrap; }
/* label + «· необязательно»: 11 px apart on one line (design); when the column is too narrow (360) the suffix moves to
   its own 20/21 px line flush with the label, as the package draws it (browsers without :has() keep the inline fallback) */
.p09-field__label:has(> .p09-opt) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 11px; }
.p09-field__label:has(> .p09-opt) .p09-opt { margin-left: 0; }
.p09-input { display: block; width: 100%; min-width: 0; height: 49px; margin-top: 9px; padding: 11px 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 18px; line-height: 26px; color: var(--ink); transition: border-color var(--ease), background-color var(--ease); }
.p09-input::placeholder { color: var(--placeholder); opacity: 1; }
.p09-input:hover { border-color: #8fa2b9; }
.p09-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.p09-input[aria-invalid="true"] { border-color: var(--error-line); background: #fff9fa; }
.p09-textarea { height: 101px; min-height: 101px; resize: none; }
.p09-field__helper { margin-top: 6px; font-size: 15px; line-height: 21px; color: var(--muted); }
.p09-field__error { margin-top: 6px; font-size: 15px; line-height: 21px; color: var(--error); }
.p09-field__error[hidden] { display: none; }

.p09-channels__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.p09-choice { position: relative; display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 0 10px 0 11px; border: 1px solid #c2cddb; border-radius: 4px; background: #fff; cursor: pointer; transition: border-color var(--ease), background-color var(--ease); }
.p09-choice:hover { border-color: #8fa2b9; }
.p09-choice__input { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--muted); border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-content: center; }
.p09-choice__input::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform var(--ease); }
.p09-choice__input:checked { border-color: var(--red); }
.p09-choice__input:checked::before { transform: scale(1); }
.p09-choice__input:focus-visible { outline: none; }
.p09-choice:has(.p09-choice__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.p09-choice:has(.p09-choice__input:checked) { border-color: var(--red); background: #fff4f5; }
.p09-channels.is-invalid .p09-choice { border-color: var(--error-line); }
.p09-choice__label { font-size: 18px; line-height: 19px; }
.p09-contact-area__before { margin-top: 21px; }
.p09-contact-area__before[hidden], .p09-contact-field[hidden] { display: none; }

.p09-form__rule { height: 0; margin: 21px 0 0; border: 0; border-top: 1px solid #e5e9ee; }
.p09-form__rule + .p09-field { margin-top: 20px; }
.p09-select { position: relative; }
.p09-select__control { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.p09-select__control.is-empty { color: var(--placeholder); }
.p09-select__control option { color: var(--ink); }
.p09-select__chevron { position: absolute; right: 14px; top: 50%; margin-top: -3px; width: 12px; height: 7px; fill: none; stroke: var(--muted); stroke-width: 1.4; pointer-events: none; }
.p09-clear { display: inline-flex; align-items: center; min-height: 32px; margin-top: 0; padding: 0; border: 0; background: transparent; font-size: 15px; line-height: 21px; color: var(--muted); text-decoration: none; cursor: pointer; transition: color var(--ease); }
.p09-clear:hover { color: var(--red); }
.p09-clear[hidden] { display: none; }

.p09-consent { margin-top: 25px; }
.p09-consent__row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0 10px; margin: -11px 0 -10px; cursor: pointer; }
.p09-checkbox { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--line); border-radius: 2px; background: #fff; cursor: pointer; display: grid; place-content: center; transition: background-color var(--ease), border-color var(--ease); }
.p09-checkbox::before { content: ''; width: 10px; height: 6px; margin-top: -3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); transition: transform var(--ease); }
.p09-checkbox:checked { border-color: var(--red); background: var(--red); }
.p09-checkbox:checked::before { transform: rotate(-45deg) scale(1); }
.p09-checkbox[aria-invalid="true"] { border-color: var(--error-line); }
.p09-checkbox:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.p09-consent__label { font-size: 16px; line-height: 23px; color: var(--ink); }
.p09-consent__label a { text-underline-offset: 3px; }
.p09-consent__helper { margin: 8px 0 0 29px; font-size: 14px; line-height: 20px; color: var(--muted); }
.p09-consent__helper a { display: inline-block; padding: 13px 0; margin: -13px 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.p09-consent__helper a:hover { color: var(--ink); }
.p09-consent .p09-field__error { margin-left: 29px; }

.p09-form__message { position: relative; margin-top: 25px; padding: 16px 16px 18px 17px; border: 1px solid #ccd5e0; border-radius: 4px; background: #f4f7fa; overflow: hidden; }
.p09-form__message::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #62748f; }
.p09-form__message.is-error::before, .p09-form__message.is-invalid::before { background: var(--red); }
.p09-form__message[hidden] { display: none; }
.p09-form__message:focus { outline: none; }
.p09-form__message-title { font-size: 21px; line-height: 27px; font-weight: 700; color: var(--ink); }
.p09-form__message-text { margin-top: 6px; font-size: 17px; line-height: 23px; color: var(--muted-2); }
.p09-form__message-title + .p09-form__message-text { margin-top: 8px; }
.p09-form__message.is-plain .p09-form__message-text { margin-top: 0; }
.p09-form__submit { margin-top: 23px; }
.p09-form__message:not([hidden]) + .p09-form__submit { margin-top: 17px; }
.p09-form[aria-busy="true"] .p09-form__submit { cursor: progress; }

.p09-success { padding: 0; }
.p09-success[hidden] { display: none; }
.p09-success__title { font-size: 34px; line-height: 40px; font-weight: 700; }
.p09-success__title:focus { outline: none; }
.p09-success__text { margin-top: 18px; font-size: 20px; line-height: 26px; color: var(--muted); }
.p09-success__again { margin-top: 30px; }

/* =====================================================================================================
 * Desktop 1200–1359 (reference 1280): gutter 40, H1 54/56, H2 40/44
 * ===================================================================================================== */
@media (max-width: 1359px) {
  .p09 { --pad: 40px; }
  .p09-hero__title { font-size: 54px; line-height: 56px; }
  .p09-hero__actions { flex-direction: column; align-items: flex-start; }
  .p09-hero__steps { margin-top: 12px; }
  .p09-hero__note { margin-top: 4px; }
  .p09-h2 { font-size: 40px; line-height: 44px; }
  .s3-header__nav { margin-right: 48px; }
}

/* =====================================================================================================
 * Desktop 800–1199 (reference 1024): gutter 32, B09 title 46/51, narrower fixed columns
 * ===================================================================================================== */
@media (max-width: 1199px) {
  .p09 { --pad: 32px; }
  .p09-step { --title-w: 200px; --result-w: 225px; }
  .p09-step__title { font-size: 22px; }
  .p09-scope__row { --title-w: 230px; --links-w: 220px; }
  .p09-contact__grid { column-gap: 50px; }
  .p09-contact__title { font-size: 46px; line-height: 51px; }
  .s3-footer__inner { grid-template-columns: 300px minmax(0, 1fr); }
  .s3-footer__nav { grid-auto-columns: minmax(0, 1fr); }
}

/* intermediate 800–1023: keep two columns where they fit, stack the dense rows */
@media (min-width: 800px) and (max-width: 1023px) {
  .p09-step { grid-template-columns: 46px 26px minmax(0, 1fr) 34px var(--result-w); }
  .p09-step__title { grid-column: 3; }
  .p09-step__text { grid-column: 3; margin-top: 10px; }
  .p09-step__result { grid-column: 5; grid-row: 1 / span 2; }
  .p09-scope__row { grid-template-columns: var(--title-w) minmax(0, 1fr); }
  .p09-scope__links { grid-column: 2; margin-top: 8px; }
  .p09-control__grid { grid-template-columns: 1fr; }
  .p09-control__report { max-width: 520px; margin: 40px auto 0; }
}
@media (min-width: 800px) and (max-width: 999px) {
  .p09-contact__grid { grid-template-columns: minmax(0, 640px); }
  .p09-card { margin-top: 36px; }
}
/* 800–849: the hero note just exceeds the text column; balance its two lines instead of leaving «минут.» alone */
@media (min-width: 800px) and (max-width: 849px) {
  .p09-hero__note { text-wrap: balance; }
}

/* =====================================================================================================
 * Shell: mobile header and menu ≤ 999 px (as published)
 * ===================================================================================================== */
@media (max-width: 999px) {
  .p09 { --header-h: 86px; --header-compact: 64px; }
  .s3-header__nav, .s3-header__cta { display: none; }
  .s3-header__brand .s3-brand__logo { width: 140px; }
  .s3-header.is-scrolled .s3-header__brand .s3-brand__logo { width: 118px; }
  .s3-header__menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: auto; margin-right: -8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  .s3-header__menu-btn .s3-icon { width: 32px; height: 22px; stroke-width: 2; stroke-linecap: butt; }
  .s3-footer { padding: 30px 0 26px; }
  .s3-footer__inner { grid-template-columns: 1fr; row-gap: 0; }
  .s3-footer__brand .s3-brand__logo { width: 140px; }
  .s3-footer__nav { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; margin-top: 14px; column-gap: 10px; row-gap: 2px; }
  .s3-footer__legal { margin-top: 10px; padding-top: 10px; gap: 2px; flex-direction: column; font-size: 17px; line-height: 22px; }
  .s3-footer__links a { min-height: 44px; }
}

/* =====================================================================================================
 * Mobile / one column (≤ 799 px). Reference 390 (gutter 24, column 342) and 360 (gutter 20, column 320)
 * ===================================================================================================== */
@media (max-width: 799px) {
  .p09 { --pad: 24px; }
  .p09-wrap { max-width: 640px; }
  .p09-h2 { font-size: 33px; line-height: 36px; }
  .p09-intro { margin-top: 22px; font-size: 18px; line-height: 26px; }
  .p09-note { font-size: 16px; line-height: 23px; }
  .p09-label { font-size: 14px; line-height: 20px; }
  .p09-textlink { font-size: 17px; line-height: 24px; }
  .s3-btn { min-height: 55px; padding: 0 20px; font-size: 19px; line-height: 21px; }
  .s3-header .s3-header__inner, .s3-menu { padding-left: var(--pad); padding-right: var(--pad); }

  /* B01: heading → text → CTA → steps → note → scene */
  .p09-hero { padding: calc(var(--header-h) + 25px) 0 0; }
  .p09-hero__grid { grid-template-columns: 1fr; }
  .p09-hero__text { padding-top: 0; }
  .p09-eyebrow { font-size: 14px; line-height: 20px; }
  .p09-hero__title { margin-top: 20px; font-size: 39px; line-height: 40px; }
  .p09-hero__lead { margin-top: 24px; font-size: 19px; line-height: 27px; }
  .p09-hero__actions { display: block; margin-top: 28px; }
  .p09-hero__cta { display: flex; width: 100%; min-width: 0; }
  .p09-hero__steps { margin-top: 9px; }
  .p09-hero__note { margin-top: 7px; font-size: 16px; line-height: 23px; }
  .p09-hero__art { width: calc(100% + 2 * var(--pad)); max-width: 640px; margin: 20px calc(-1 * var(--pad)) 0; justify-self: center; }

  /* B02 */
  .p09-modes { padding: 52px 0 52px; }
  .p09-modes__main { grid-template-columns: 1fr; margin-top: 34px; }
  .p09-mode__title { margin-top: 9px; font-size: 26px; line-height: 29px; }
  .p09-mode__text { margin-top: 14px; font-size: 18px; line-height: 26px; }
  .p09-mode--work { margin: 28px 24px 0 24px; padding: 0; }
  .p09-mode--work::before { left: -24px; }
  .p09-mode--paid { display: block; margin: 28px 0 0 0; padding: 24px 24px 15px 24px; }
  .p09-mode--paid .p09-mode__title { font-size: 24px; line-height: 29px; }
  .p09-mode--paid .p09-mode__text { margin-top: 14px; }
  .p09-modes__note { margin-top: 43px; padding-top: 21px; }

  /* B03 */
  .p09-steps { padding: 52px 0 54px; }
  .p09-steps__list { margin-top: 34px; }
  .p09-step { display: grid; grid-template-columns: 34px 16px minmax(0, 1fr); padding-bottom: 30px; }
  .p09-step__num { grid-row: 1 / span 3; width: 34px; height: 34px; font-size: 14px; }
  .p09-step:not(:last-child)::before { left: 16.5px; top: 34px; }
  .p09-step__title { grid-column: 3; padding-top: 2px; font-size: 24px; line-height: 27px; }
  .p09-step__text { grid-column: 3; margin-top: 13px; font-size: 18px; line-height: 26px; }
  .p09-step__result { grid-column: 3; margin-top: 13px; padding: 13px 14px 13px; font-size: 16px; line-height: 23px; }

  /* B04 */
  .p09-roles { padding: 52px 0 52px; }
  .p09-roles__pair { grid-template-columns: 1fr; margin-top: 34px; }
  .p09-role--team { margin-top: 16px; padding-top: 0; }
  .p09-role--team::before { display: none; }
  .p09-role--client .p09-role__title, .p09-role--team .p09-role__title { font-size: 27px; line-height: 30px; }
  .p09-role__title { font-size: 24px; line-height: 29px; }
  .p09-role__text, .p09-sub__text { margin-top: 15px; font-size: 18px; line-height: 26px; }
  .p09-roles__pair + .p09-role--staff { margin-top: 30px; }
  .p09-roles__pair { padding-bottom: 0; }
  .p09-role--client { padding-bottom: 13px; border-bottom: 1px solid #c2cad5; }
  .p09-roles__subs { grid-template-columns: 1fr; margin-top: 30px; padding-top: 30px; row-gap: 28px; }
  .p09-sub__title { font-size: 24px; line-height: 29px; }
  .p09-trust { margin-top: 38px; padding-left: 21px; }
  .p09-trust__text { font-size: 17px; line-height: 24px; }

  /* B05 */
  .p09-control { padding: 52px 0 52px; }
  .p09-control__grid { grid-template-columns: 1fr; }
  .p09-control__items { grid-template-columns: 1fr; row-gap: 29px; margin-top: 40px; }
  .p09-control__item-title { font-size: 25px; line-height: 30px; }
  .p09-control__item-text { margin-top: 15px; font-size: 18px; line-height: 26px; }
  .p09-control__report { margin-top: 18px; }
  .p09-example { margin-top: 0; padding: 24px 24px 24px; }
  .p09-example__title { margin-top: 14px; font-size: 24px; line-height: 29px; }
  .p09-example__text { margin-top: 16px; font-size: 17px; line-height: 24px; }
  .p09-example__note { margin-top: 16px; font-size: 15px; line-height: 21px; }

  /* B06 */
  .p09-scope { padding: 52px 0 52px; }
  .p09-scope__list { margin-top: 34px; }
  .p09-scope__row { display: block; padding: 24px 0 15px; }
  .p09-scope__links { padding-left: 0; }
  .p09-scope__title { font-size: 25px; line-height: 29px; }
  .p09-scope__text { margin-top: 13px; font-size: 18px; line-height: 26px; }
  .p09-scope__links { margin-top: 15px; }
  .p09-scope__links .p09-textlink { padding: 0 0 10px; }
  .p09-scope__note { margin-top: 10px; }

  /* B07: all terms first, then the CTA */
  .p09-terms { padding: 52px 0 52px; }
  .p09-terms__grid { display: flex; flex-direction: column; }
  .p09-terms__head { display: contents; }
  .p09-terms__head .p09-h2 { order: 1; }
  .p09-terms__items { order: 2; margin-top: 30px; }
  .p09-terms__items::before { display: none; }
  .p09-terms__cta { order: 3; display: flex; width: 100%; min-width: 0; margin-top: 31px; }
  .p09-term + .p09-term { margin-top: 29px; }
  .p09-term__title { font-size: 25px; line-height: 30px; }
  .p09-term__text { font-size: 18px; line-height: 26px; }

  /* B08 */
  .p09-faq { padding: 52px 0 52px; }
  .p09-faq__grid { grid-template-columns: 1fr; }
  .p09-faq__list { margin-top: 28px; }
  .p09-faq__btn { grid-template-columns: 33px minmax(0, 1fr) 28px; padding: 21px 0 21px; min-height: 64px; }
  .p09-faq__num { padding-top: 4px; font-size: 12px; line-height: 17px; }
  .p09-faq__question { font-size: 20px; line-height: 26px; }
  .p09-faq__answer { padding: 0 28px 26px 33px; }
  .p09-faq__answer p { font-size: 18px; line-height: 26px; }

  /* B09 */
  .p09-contact { padding: 52px 0 52px; }
  .p09-contact__grid { grid-template-columns: 1fr; }
  .p09-contact__title { margin-top: 22px; font-size: 36px; line-height: 40px; }
  .p09-contact__lead { margin-top: 26px; font-size: 19px; line-height: 27px; }
  .p09-contact__note { margin-top: 24px; font-size: 17px; line-height: 24px; }
  .p09-card { margin-top: 30px; padding: 20px; border-radius: 8px; }
  .p09-form__legend { font-size: 13px; line-height: 18px; }
  .p09-field__label { font-size: 17px; line-height: 24px; }
  .p09-opt { font-size: 14px; line-height: 20px; }
  .p09-input { font-size: 17px; line-height: 24px; }
  .p09-field__helper, .p09-field__error { font-size: 14px; line-height: 20px; }
  .p09-choice__label { font-size: 16px; }
  .p09-consent__label { font-size: 15px; line-height: 21px; }
  .p09-consent__helper { font-size: 13px; line-height: 18px; }
  .p09-form__message-title { font-size: 19px; line-height: 24px; }
  .p09-form__message-text { font-size: 16px; line-height: 22px; }
  .p09-success__title { font-size: 28px; line-height: 33px; }
  .p09-success__text { font-size: 18px; line-height: 26px; }
}

/* 360 reference: gutter 20, H1 36/37, H2 31/34, form card padding 16 */
@media (max-width: 374px) {
  .p09 { --pad: 20px; }
  .p09-hero__title { font-size: 36px; line-height: 37px; }
  .p09-h2 { font-size: 31px; line-height: 34px; }
  .p09-contact__title { font-size: 34px; line-height: 37px; }
  .p09-step__title { font-size: 23px; }
  .p09-card { padding: 16px; }
}

/* touch: every link and control gets a 44 px target without moving the text (stacked service links get the needed gap) */
@media (pointer: coarse) {
  .p09-scope__links .p09-textlink { min-height: 44px; padding-top: 10px; padding-bottom: 10px; margin-top: -10px; }
  .p09-scope__links .p09-textlink + .p09-textlink { margin-top: 0; }
  .p09-scope__links .p09-textlink:last-child { margin-bottom: -10px; }
}
@media (pointer: coarse) { .p09-clear { min-height: 44px; margin: -6px 0 -6px; } }
