/* ddos-how.html page styles (owner: page agent «ddos-how»). Shared tokens/components: assets/css/*.css (read-only for page agents).
   Figma «VDS.RENT · Как работает защита · 1728» (dump ddos-how). Numbers below are Figma px at 1728; parts that keep their
   proportions between 1280 and 1728 scale with --u (tokens.css). Section boxes keep the Figma heights (overlaps included):
   hero 1211 · default 826 · backbone 740 · attacks 1446 · guard 740 · profiles 866 · players 986 · faq 996 · price 662.
   Centred one-line headlines get padding-right = |letter-spacing| (CSS also spaces after the last glyph, Figma does not). */

/* ============================================================================================ shared bits of this page */
.dh-shead__h { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; color: var(--t1); text-align: center;
  padding-right: 0.035em; }
.dh-shead__sub { max-width: 1100px; margin: 16px auto 0; font-size: 19px; line-height: 28px; letter-spacing: -0.006em; color: var(--t2);
  text-align: center; }
/* a render box = the Figma image node (the trimmed picture sits inside it at the img.py offsets) */
.dh-fig { position: relative; flex: none; }
.dh-fig__img { position: absolute; max-width: none; }

/* ============================================================================================ 1 · first screen */
.dh-hero { padding: 196px 0 130px; text-align: center; }
.dh-hero .crumbs--hero { position: relative; z-index: 1; }
.dh-hero__h { margin-top: 7px; font-size: 72px; line-height: 76px; font-weight: 600; letter-spacing: -0.042em; color: var(--t1);
  padding-right: 0.042em; }
.dh-hero__sub { width: 760px; max-width: calc(100% - 2 * var(--M)); margin: 18px auto 0; font-size: 21px; line-height: 30px;
  letter-spacing: -0.008em; color: var(--t2); }
.dh-hero__cta { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: 36px; }
/* the panorama: full bleed, 1728 × 520 at 1728 (its top 24 px run under the button: empty black there) */
.dh-path { position: relative; margin-top: -24px; }
.dh-path__img { width: 100%; height: auto; aspect-ratio: 1728 / 520; }
/* the four stages under the objects of the panorama: columns at x 90 / 510 / 910 / 1330, 300 wide (fr = Figma px) */
.dh-stages { position: relative; z-index: 1; display: grid; margin-top: -16px; text-align: left;
  grid-template-columns: minmax(0, 90fr) minmax(0, 300fr) minmax(0, 120fr) minmax(0, 300fr) minmax(0, 100fr) minmax(0, 300fr) minmax(0, 120fr) minmax(0, 300fr) minmax(0, 98fr); }
.dh-stage { position: relative; grid-row: 1; }
.dh-stage--1 { grid-column: 2; } .dh-stage--2 { grid-column: 4; } .dh-stage--3 { grid-column: 6; } .dh-stage--4 { grid-column: 8; }
.dh-stage__t { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.012em; color: var(--t1); }
.dh-stage__d { margin-top: 10px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; color: var(--t2); }
/* the » between two stages, centred in the gap (gaps 120 / 100 / 120 = 40 % / 33.3 % / 40 % of a stage column) */
.dh-stage__next { position: absolute; top: 3px; left: calc(120% - 12px); color: var(--t3); }
.dh-stage--2 .dh-stage__next { left: calc(116.6667% - 12px); }

/* ============================================================================================ 2 · default (graphite) */
.dh-default { padding: 200px 0; }
.dh-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
/* the cards share their rows (subgrid): where a title has to take two lines, the descriptions of the row still start on one line */
.dh-feat { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  padding: 40px; border-radius: var(--r-block); background: var(--grey-block); }
.dh-feat__i { color: var(--t1); }
.dh-feat__t { margin-top: 32px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.012em; color: var(--t1); }
.dh-feat__d { margin-top: 12px; font-size: 16px; line-height: 24px; letter-spacing: -0.003em; color: var(--t2); }

/* ============================================================================================ 3 · backbone (black) */
.dh-backbone { padding: 136px 0; }
.dh-backbone__in { display: flex; align-items: center; justify-content: space-between; }
.dh-backbone__txt { flex: none; }
.dh-backbone__h { margin-left: -2px; font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; color: var(--t1); }
.dh-backbone__sub { width: 600px; margin-top: 20px; font-size: 19px; line-height: 28px; letter-spacing: -0.006em; color: var(--t2); }
.dh-caps { display: flex; margin-top: 56px; }
.dh-cap--ru { width: 340px; flex: none; }
.dh-cap__c { display: flex; align-items: flex-start; font-size: 19px; line-height: 28px; font-weight: 600; letter-spacing: -0.006em; color: var(--t1); }
.dh-cap__flag { --sz: 22; margin: 3px 10px 0 0; }
.dh-cap__v { display: flex; align-items: flex-start; height: 112px; margin-top: 12px; }
.dh-cap__n { margin-left: -4px; font-size: 112px; line-height: 112px; font-weight: 600; letter-spacing: -0.06em; color: var(--t1); }
.dh-cap__u { margin: 56px 0 0 12px; font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.018em; color: var(--t1); white-space: nowrap; }
.dh-cap__d { margin-top: 14px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; color: var(--t3); white-space: nowrap; }
.dh-backbone__fig { width: calc(780 * var(--u)); height: calc(390 * var(--u)); }
.dh-backbone__fig .dh-fig__img { left: calc(69.88 * var(--u)); top: calc(52.65 * var(--u)); width: calc(640.25 * var(--u)); height: calc(285.35 * var(--u)); }

/* ============================================================================================ 4 · attack classes (graphite) */
.dh-attacks { padding: 200px 0; }
.dh-attacks__sub { max-width: 1400px; }
.dh-atks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
/* the two cards of a row share their rows (subgrid): a title that takes two lines keeps both descriptions and lists level */
.dh-atk { position: relative; overflow: hidden; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  padding: 56px 48px 48px; border-radius: var(--r-block); background: var(--grey-block); }
.dh-atk > :not(img) { position: relative; }
/* the object in the upper right corner (Figma: the render box hangs 11–13 px past the card's right edge, the card clips it) */
.dh-atk__img { position: absolute; max-width: none; top: calc(var(--it) * var(--u)); right: calc(var(--ir) * var(--u));
  width: calc(var(--iw) * var(--u)); height: calc(var(--ih) * var(--u)); }
.dh-atk--l3  { --it: 23.78; --ir: 57.60; --iw: 315.56; --ih: 161.44; }
.dh-atk--l4  { --it: 29.96; --ir: 23.46; --iw: 384.47; --ih: 148.65; }
.dh-atk--amp { --it: 23.78; --ir: 31.03; --iw: 365.91; --ih: 161.44; }
.dh-atk--l7  { --it: 23.81; --ir: 31.72; --iw: 371.90; --ih: 163.18; }
.dh-atk__lv { font-family: var(--mono); font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--acc-line); }
/* the title runs at most ~30 px into the render's empty margin (as at 1728); narrower cards wrap it instead */
.dh-atk__t { max-width: calc(100% + 48px - (var(--ir) + var(--iw) - 30) * var(--u)); margin-top: 14px; font-size: 36px; line-height: 40px;
  font-weight: 600; letter-spacing: -0.02em; color: var(--t1); }
.dh-atk__d { width: 352px; max-width: 100%; min-height: 64px; margin-top: 56px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; color: var(--t2); }
/* the attack names: a name stays whole, lines break only between names and no «·» ends or opens a line. Each «·» leads its
   name (.dh-sep, as wide as Figma's «   ·   » minus the word space before it); the line box runs --sepw to the left inside the
   clipping paragraph, so the «·» of a name that opens a line sits in the clipped strip (the first line is indented back). A name
   longer than a whole line (320 px phones only) wraps inside its own box with its lines aligned. */
.dh-atk__list { --sepw: 1.4396em; overflow: hidden; margin-top: 28px; font-size: 15px; line-height: 26px; letter-spacing: -0.002em; color: var(--t1); }
.dh-al { display: block; margin-left: calc(-1 * var(--sepw)); text-indent: var(--sepw); }
.dh-ai { display: inline-block; padding-left: var(--sepw); text-indent: calc(-1 * var(--sepw)); text-wrap: balance; }
.dh-sep { display: inline-block; width: var(--sepw); text-indent: 0; white-space: pre; }
/* at 1728 (the frame) the lists run exactly as Figma sets them: free breaks inside names, the «·» kept at the line end */
@media (min-width: 1728px) and (max-width: 1744px) {
  .dh-atk__list { overflow: visible; }
  .dh-al { margin-left: 0; text-indent: 0; white-space: pre-wrap; }
  .dh-ai { display: inline; padding-left: 0; text-indent: 0; }
  .dh-sep { display: inline; width: auto; white-space: pre-wrap; }
  .dh-sep__a { white-space: pre; }
}
.dh-attacks__note { margin-top: 32px; font-size: 17px; line-height: 24px; letter-spacing: -0.003em; color: var(--t3); text-align: center; }

/* ============================================================================================ 5 · Guard (black) */
.dh-guard { padding: 144px 0 155px; }
.dh-guard__in { display: flex; align-items: flex-start; justify-content: space-between; }
.dh-guard__fig { width: calc(820 * var(--u)); height: calc(410 * var(--u)); margin: calc(31 * var(--u)) 0 0 calc(-24 * var(--u)); }
.dh-guard__fig .dh-fig__img { left: calc(75.17 * var(--u)); top: calc(36.56 * var(--u)); width: calc(669.67 * var(--u)); height: calc(336.88 * var(--u)); }
.dh-guard__txt { flex: none; width: calc(764 * var(--u)); }
.dh-guard__h { font-size: 44px; line-height: 50px; font-weight: 600; letter-spacing: -0.026em; color: var(--t1); }
.dh-guard__sub { margin-top: 20px; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); }
.dh-pts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 22px; margin-top: 40px; }
.dh-pt { padding-top: 19px; border-top: 1px solid var(--hl-12); }
.dh-pt__t { font-size: 19px; line-height: 26px; font-weight: 600; letter-spacing: -0.007em; color: var(--t1); }
.dh-pt__d { margin-top: 6px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; color: var(--t2); }

/* ============================================================================================ 6 · profiles (graphite) */
.dh-prof { padding: 200px 0; }
.dh-prof__in { display: flex; align-items: stretch; justify-content: space-between; }
.dh-prof__txt { display: flex; flex-direction: column; flex: none; width: 440px; }
.dh-prof__h { margin-left: -1px; font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.024em; color: var(--t1); }
.dh-prof__sub { margin-top: 20px; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); }
/* the ask 114 under the lead (Figma: lead ends 4975, ask 5089) — it stays there when the directory runs taller */
.dh-prof__ask { display: flex; flex-direction: column; align-items: flex-start; margin-top: 114px; }
.dh-prof__q { font-size: 17px; line-height: 22px; font-weight: 500; letter-spacing: -0.004em; color: var(--t1); }
.dh-prof__a { margin-top: 6px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; color: var(--t2); }
.dh-prof__btn { margin-top: 24px; }
/* the directory: 8 columns from x 600, five content-wide columns spread edge to edge (Figma widths 202 151 174 171 109).
   Where the five need more than the room beside the text (< 1480), the directory takes what is left (40 px after the text) and
   the columns give way together, gaps never under 24: a long name then takes two lines (see the 1479 block) */
.dh-dir { display: flex; justify-content: space-between; column-gap: 24px; flex: 0 1 calc(8 * var(--col) + 7 * var(--gut)); min-width: 0;
  margin-left: 40px; padding-top: 8px; }
.dh-dir__col { flex: 0 1 auto; min-width: 0; }
.dh-dir__col--1 { flex-basis: 202px; } .dh-dir__col--2 { flex-basis: 151px; } .dh-dir__col--3 { flex-basis: 174px; }
.dh-dir__col--4 { flex-basis: 171px; } .dh-dir__col--5 { flex: none; width: 109px; }   /* its «QUIC / HTTP/3», «IKEv2 / IPsec» stay whole */
.dh-grp + .dh-grp { margin-top: 30px; }
.dh-grp__h { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.002em; color: var(--t3); }
.dh-grp__l { margin-top: 10px; }
.dh-grp__l li { font-size: 16px; line-height: 28px; letter-spacing: -0.003em; color: var(--t-e5); white-space: nowrap; }

/* ============================================================================================ 7 · players (black) */
.dh-players { padding: 128px 0 140px; }
.dh-players__in { display: flex; align-items: center; justify-content: space-between; margin-top: 64px; }
.dh-ways { flex: none; width: calc(7 * var(--col) + 6 * var(--gut)); }
.dh-way { position: relative; padding-left: 76px; }
.dh-way__i { position: absolute; left: 40px; }
.dh-way__t { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.012em; }
.dh-way__d { max-width: calc(100% - 24px); margin-top: 8px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; }
.dh-flow { display: flex; flex-wrap: wrap; row-gap: 6px; font-size: 17px; line-height: 22px; letter-spacing: -0.003em; white-space: nowrap; }
.dh-flow__s { display: flex; align-items: flex-start; }
.dh-flow__sep { margin: 2px 12px 0; }
.dh-flow__x { margin: 3px 13px 0; color: #B85A52; }
.dh-way__rod { display: block; width: calc(100% - 40px); height: auto; aspect-ratio: 826 / 75; object-fit: cover; object-position: 50% 50%; }
/* the usual way: no surface, muted */
.dh-way--old { padding-top: 42px; padding-bottom: 8px; }
.dh-way--old .dh-way__i { top: 44px; color: var(--t5); }
.dh-way--old .dh-way__t { color: var(--t3); }
.dh-way--old .dh-way__d { color: var(--t5); }
.dh-way--old .dh-flow { margin-top: 16px; color: var(--t5); }
.dh-way--old .dh-flow__sep { color: var(--t-sep); }
.dh-way--old .dh-way__rod { margin-top: 20px; }
/* ours: the graphite block, lit */
.dh-way--ours { margin-top: 16px; padding-top: 46px; padding-bottom: 28px; border-radius: var(--r-block); background: var(--graphite); }
.dh-way--ours .dh-way__i { top: 48px; color: var(--acc-line); }
.dh-way--ours .dh-way__t { color: var(--t1); }
.dh-way--ours .dh-way__d { color: var(--t2); }
.dh-way--ours .dh-flow { margin-top: 22px; font-weight: 500; color: var(--t1); }
.dh-way--ours .dh-flow__sep { color: var(--t2); }
.dh-way--ours .dh-way__rod { margin-top: 10px; }
.dh-players__fig { width: calc(642 * var(--u)); height: calc(321 * var(--u)); }
.dh-players__fig .dh-fig__img { left: calc(57.51 * var(--u)); top: calc(31.57 * var(--u)); width: calc(526.98 * var(--u)); height: calc(257.87 * var(--u)); }

/* ============================================================================================ 8 · questions (graphite) */
.dh-faq { padding: 200px 0 199px; }
.dh-faq__in { display: flex; align-items: flex-start; justify-content: space-between; }
.dh-faq__txt { flex: none; }
.dh-faq__h { margin-left: -2px; font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; color: var(--t1); }
.dh-faq__sub { width: 480px; margin-top: 8px; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); }
.dh-faq__btn { margin-top: 28px; }
.dh-acc { flex: none; width: calc(7 * var(--col) + 6 * var(--gut)); }
.dh-acc__it { position: relative; padding-bottom: 30px; border-top: 1px solid var(--hl-14); }
.dh-acc__it:last-child { border-bottom: 1px solid var(--hl-14); }
.dh-acc__q { position: relative; padding-top: 29px; color: var(--t1); }
/* closed, the whole row answers the tap (the 30 px under the question too) */
.dh-acc__q::after { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -30px; }
.dh-acc__q[aria-expanded="true"]::after { bottom: 0; }
.dh-acc__qt { flex: 0 1 870px; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.dh-acc__ico { margin-top: 2px; }
.dh-acc__a { max-width: 782px; padding-top: 16px; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); }

/* ============================================================================================ 9 · price (black) */
.dh-price { padding: 140px 0 160px; }
.dh-price__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dh-price__v { padding-right: 0.08em; font-size: 160px; line-height: 160px; font-weight: 600; letter-spacing: -0.08em; color: var(--t1); white-space: nowrap; }
.dh-price__h { margin-top: 12px; padding-right: 0.02em; font-size: 36px; line-height: 42px; font-weight: 600; letter-spacing: -0.02em; color: var(--t1); }
.dh-price__pts { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; font-size: 17px; line-height: 24px;
  letter-spacing: -0.003em; color: var(--t2); }
.dh-price__pts li { display: flex; align-items: center; gap: 18px; }
.dh-price__pts li + li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--t5); }
.dh-price__cta { margin-top: 40px; }

/* ============================================================================================ 1280 … 1727: the same composition,
   fluid (renders and render-led columns scale with --u); wrapped headings balance their lines, paragraphs avoid orphans */
@media (max-width: 1727px) {
  .dh-atk__t, .dh-feat__t, .dh-shead__h { text-wrap: balance; }
  /* only the paragraphs that get narrower than in the frame (the ones at their Figma width keep Figma's breaks: Safari's
     «pretty» re-sets whole paragraphs) */
  .dh-stage__d, .dh-feat__d, .dh-guard__sub, .dh-pt__d, .dh-way__d, .dh-acc__a { text-wrap: pretty; }
  .dh-feat { padding-inline: calc(40 * var(--u)); }
  /* Guard: the card stays centred on the text column, 23 px low as at 1728 (there: text 426 high, card box 31 under its
     top = centred with a 46 px top margin) */
  .dh-guard__in { align-items: center; }
  .dh-guard__fig { margin-top: calc(46 * var(--u)); }
  /* the usual way's line runs the whole block (Figma's 24 px short end only matters at 1728: one line there and at 1512) */
  .dh-way__d { max-width: none; }
}
/* Guard 1180 … 1727: the head keeps Figma's two lines («…XDP и eBPF,» / «написанный нами с нуля»): the head and its column
   scale together (--gk: 1px at 1728 → 0.8636 at 1280 = 38 px type, 0.833 at 1180), the card takes the rest of the row at
   its own scale (Figma: card box 820 − 24 overhang + 72 to the text = 868 per 1px) */
@media (min-width: 1180px) and (max-width: 1727px) {
  .dh-guard { --gk: calc(0.8636px + (clamp(1180px, 100vw, 1728px) - 1280px) * 0.1364 / 448); }
  .dh-guard__txt { width: calc(764 * var(--gk)); }
  .dh-guard__h { font-size: calc(44 * var(--gk)); line-height: calc(50 * var(--gk)); }
  .dh-guard__fig { --u: calc((var(--content) - 764 * var(--gk)) / 868); }
}
/* above the frame the stage columns grow with the panorama: the texts keep their Figma measure (300) and so its breaks */
@media (min-width: 1729px) {
  .dh-stage__d { max-width: 300px; }
}
/* the directory: the five columns need 903 px with 24 px gaps (≥ 1480); narrower they share the shortfall and a name that no
   longer fits takes two lines, kept together (22 px leading inside the 28 px step) */
@media (max-width: 1479px) {
  .dh-grp__l li { padding-block: 3px; line-height: 22px; white-space: normal; text-wrap: balance; }
}
/* players: the steps (684 px from the text edge) must stay inside the line (block − 76 − 40) and the usual way's text
   (716) on one line → under 1500 the blocks take 8 columns and a gutter, the gamepad the rest of the row */
@media (max-width: 1499px) {
  .dh-ways { width: calc(8 * var(--col) + 8 * var(--gut)); }
  .dh-players__fig { width: calc(100% - 8 * var(--col) - 8 * var(--gut)); height: auto; aspect-ratio: 2 / 1; }
  .dh-players__fig .dh-fig__img { left: 8.958%; top: 9.835%; width: 82.084%; height: auto; }
}

/* ============================================================================================ tablet 601 … 1279: one column of
   blocks per section, the renders at their desktop size where they fit */
@media (max-width: 1279px) {
  .dh-hero__h { padding-right: 0; }
  .dh-hero__sub, .dh-shead__sub, .dh-atk__d, .dh-prof__sub, .dh-prof__a { text-wrap: pretty; }
  /* default: 2 × 2 cards */
  .dh-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-feat { padding-inline: 40px; }
  /* the stage texts (1180 … 1279, four in a row) take 24 px of the gap after them: four lines at most */
  .dh-stage__d { margin-right: -24px; }
  /* backbone (1180 … 1279 still side by side): the node gives way to the text column, at its own proportions */
  .dh-backbone__fig { flex: 0 1 auto; min-width: 0; height: auto; aspect-ratio: 2 / 1; }
  .dh-backbone__fig .dh-fig__img { left: 8.959%; top: 13.5%; width: 82.083%; height: auto; }
  /* attacks: one card per row, each the desktop card made wider */
  .dh-atks { grid-template-columns: minmax(0, 1fr); }
  .dh-atk { --u: 1px; }
  .dh-atk__t { max-width: none; }
  /* profiles: the text full width, the directory under it, the ask last */
  .dh-prof { padding: 176px 0; }
  .dh-prof__in { flex-direction: column; }
  .dh-prof__txt { display: contents; }
  .dh-prof__h, .dh-prof__sub { max-width: 600px; }
  .dh-prof__ask { order: 3; margin-top: 0; padding-top: 16px; }
  .dh-dir { display: block; order: 2; flex: none; width: 100%; margin: 48px 0 0; columns: 4 180px; column-gap: 28px; }
  .dh-dir__col { display: contents; }
  .dh-grp { break-inside: avoid; padding-bottom: 30px; }
  .dh-grp + .dh-grp { margin-top: 0; }
  /* players: the render under the head, the two blocks full width */
  .dh-players { padding: 112px 0 120px; }
  .dh-players__in { flex-direction: column-reverse; align-items: center; margin-top: 40px; }
  .dh-ways { width: 100%; }
  .dh-players__fig { width: min(642px, 100%); margin-bottom: 32px; }
  /* questions: the head, then the list full width */
  .dh-faq { padding: 176px 0 175px; }
  .dh-faq__in { flex-direction: column; align-items: stretch; }
  .dh-acc { width: 100%; margin-top: 56px; }
  .dh-acc__a { padding-right: 48px; }
  .dh-price { padding: 128px 0 136px; }
}
/* ============================================================================================ under the 60 px bar (≤ 1179):
   the first screen starts 72 under the bar (as on the DDoS page), the stages go 2 × 2 before a text needs five lines, the
   backbone and Guard stack — their text blocks centred in the row */
@media (max-width: 1179px) {
  .dh-hero { padding-top: calc(var(--mbar-h) + 72px); }
  /* the stages: 2 × 2, the » only inside a row */
  .dh-stages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; row-gap: 32px; padding-inline: var(--M); margin-top: 0; }
  .dh-stage--1, .dh-stage--3 { grid-column: 1; } .dh-stage--2, .dh-stage--4 { grid-column: 2; }
  .dh-stage--1, .dh-stage--2 { grid-row: 1; } .dh-stage--3, .dh-stage--4 { grid-row: 2; }
  .dh-stage--1 .dh-stage__next, .dh-stage--3 .dh-stage__next { left: calc(100% + 24px); }
  .dh-stage--2 .dh-stage__next { display: none; }
  .dh-stage__d { margin-right: 0; }
  /* backbone: the text block centred, the node centred under it */
  .dh-backbone { padding: 112px 0 104px; }
  .dh-backbone__in { flex-direction: column; align-items: center; }
  .dh-backbone__txt { max-width: 100%; }
  .dh-backbone__sub { width: auto; max-width: 600px; }
  .dh-backbone__fig { flex: none; width: min(780px, 100%); margin-top: 24px; }
  /* guard: the card on top, the text under it (centred, 864 at most) */
  .dh-guard { padding: 104px 0 112px; }
  .dh-guard__in { flex-direction: column; align-items: center; }
  .dh-guard__fig { width: min(820px, 100%); height: auto; aspect-ratio: 2 / 1; margin: 0; }
  .dh-guard__fig .dh-fig__img { left: 9.167%; top: 8.917%; width: 81.667%; height: auto; }
  .dh-guard__txt { width: 100%; max-width: 864px; margin-top: 24px; }
  .dh-guard__h { text-wrap: balance; }
}
@media (max-width: 1023px) {
  .dh-hero__h { font-size: 56px; line-height: 60px; letter-spacing: -0.035em; }
  .dh-shead__h, .dh-backbone__h, .dh-faq__h { font-size: 44px; line-height: 48px; letter-spacing: -0.03em; }
  .dh-feat { padding: 32px; }
  /* attack cards: the object across the top of the card, the text under it (as on the phone) */
  .dh-atk { padding: 190px 40px 40px; }
  .dh-atk__t { margin-top: 12px; }
  .dh-atk__d { width: auto; max-width: 560px; min-height: 0; margin-top: 16px; }
  .dh-atk__list { margin-top: 20px; }
  .dh-dir { columns: 3 170px; }
  .dh-way { padding-left: 64px; }
  .dh-way__i { left: 28px; }
  .dh-way__rod { width: calc(100% - 28px); }
  .dh-flow { font-size: 15px; }
  .dh-flow .tw { width: auto; }
  /* the steps stay inside the line at 768 too (8 px around each mark) */
  .dh-flow__sep { margin-inline: 8px; }
  .dh-flow__x { margin-inline: 9px; }
  .dh-price__v { font-size: 128px; line-height: 128px; }
  /* the three points no longer fit one row: a plain centred list, no separators left between them */
  .dh-price__pts { flex-direction: column; gap: 8px; }
  .dh-price__pts li + li::before { content: none; }
}
/* 601 … 700: the 56 px headline would reach the screen edges — one step down */
@media (max-width: 700px) {
  .dh-hero__h { font-size: 48px; line-height: 52px; letter-spacing: -0.035em; }
}

@media (max-width: 767px) {
  .dh-cap--ru { width: min(340px, 50%); }
  .dh-cap--de { flex: 1 1 0; min-width: 0; }
  .dh-cap__d { white-space: normal; }
  .dh-flow { flex-direction: column; row-gap: 4px; }
  .dh-flow__s:first-child { padding-left: 42px; }
}

/* ============================================================================================ phone ≤ 600 (the 390 frame's system:
   20 px gutters, black sections round 32 and overlap 32, 72 px padding — graphite ones 104 at the joins —, heads 32/36 centred,
   subs 16/24, full-width 48 px actions, cards #212123 r24 p24). Left-aligned desktop compositions stay left-aligned. */
@media (max-width: 600px) {
  /* ---- first screen */
  .dh-hero { padding: 84px 0 64px; }
  .dh-hero__h { margin: 16px var(--M) 0; padding: 0; font-size: 38px; line-height: 42px; letter-spacing: -0.045em; text-wrap: balance; }
  .dh-hero__sub { width: auto; max-width: none; margin: 16px var(--M) 0; font-size: 16px; line-height: 24px; letter-spacing: -0.004em; text-wrap: balance; }
  .dh-hero__cta { margin-top: 28px; padding-inline: var(--M); }
  /* the panorama as the phone system's sideways scroller (it runs past the screen edge): 0.55 of the frame, 231 px high (its
     black top 24 and bottom 76 cut); in view the attack hitting the backbone and the light running on, the filter and the
     server one swipe further. The view opens with the backbone's right edge 24 px inside the screen (the far left of the
     spark stream stays cut off on narrow phones: it runs in from beyond the edge anyway) */
  .dh-path { --pk: 0.55; height: calc(420px * var(--pk)); margin-top: 12px; overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dh-path::-webkit-scrollbar { display: none; }
  .dh-path__img { display: block; width: calc(1728px * var(--pk)); max-width: none; height: auto; aspect-ratio: 1728 / 520;
    margin: calc(-24px * var(--pk)) 0 0 min(0px, calc(100vw - var(--pv, 470px))); }
  /* the four stages one under the other, the » turned down between them */
  .dh-stages { display: flex; flex-direction: column; align-items: center; margin-top: -10px; padding-inline: var(--M); text-align: center; }
  .dh-stage { width: 100%; max-width: 330px; }
  .dh-stage__t { font-size: 20px; line-height: 26px; letter-spacing: -0.012em; }
  .dh-stage__d { margin-top: 6px; text-wrap: balance; }
  .dh-stage__next, .dh-stage--2 .dh-stage__next { --sz: 20; position: static; display: block; margin: 12px auto; transform: rotate(90deg); }

  /* ---- section heads (centred) */
  .dh-shead__h { margin-inline: -4px; padding: 0; font-size: 32px; line-height: 36px; letter-spacing: -0.028em; text-wrap: balance; }
  .dh-shead__sub { margin-top: 16px; font-size: 16px; line-height: 24px; letter-spacing: -0.004em; text-wrap: balance; }

  /* ---- default: the four cards stacked */
  .dh-default { padding: 104px 0; }
  .dh-feats { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 36px; }
  .dh-feat { padding: 24px; border-radius: 24px; }
  .dh-feat__t { margin-top: 20px; font-size: 20px; line-height: 26px; letter-spacing: -0.012em; }
  .dh-feat__d { margin-top: 8px; font-size: 15px; line-height: 22px; letter-spacing: -0.003em; }

  /* ---- backbone: title, text, the node, the two capacities side by side */
  .dh-backbone { padding: 72px 0; }
  .dh-backbone__in { align-items: flex-start; }
  .dh-backbone__txt { display: contents; }
  .dh-backbone__h { order: 1; margin-left: -1px; font-size: 32px; line-height: 36px; letter-spacing: -0.028em; }
  .dh-backbone__sub { order: 2; width: auto; margin-top: 16px; font-size: 16px; line-height: 24px; letter-spacing: -0.004em; }
  .dh-backbone__fig { order: 3; width: 100%; margin-top: 20px; }
  .dh-caps { order: 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; width: 100%; margin-top: 20px; }
  .dh-cap--ru { width: auto; }
  .dh-cap__c { font-size: 16px; line-height: 22px; letter-spacing: -0.004em; }
  .dh-cap__flag { --sz: 20; margin: 1px 8px 0 0; }
  .dh-cap__v { height: auto; margin-top: 6px; }
  .dh-cap__n.tw { width: auto; margin-left: -2px; font-size: 64px; line-height: 64px; }
  .dh-cap__u { margin: 30px 0 0 8px; font-size: 22px; line-height: 26px; }
  .dh-cap__d { margin-top: 6px; font-size: 13px; line-height: 18px; letter-spacing: -0.001em; white-space: normal; }

  /* ---- attacks: cards stacked, the object across the top of each */
  .dh-attacks { padding: 104px 0; }
  .dh-atks { gap: 12px; margin-top: 36px; }
  .dh-atk { --u: 0.78px; padding: 146px 24px 24px; border-radius: 24px; }
  .dh-atk__t { max-width: none; margin-top: 10px; font-size: 26px; line-height: 30px; letter-spacing: -0.02em; }
  .dh-atk__d { width: auto; min-height: 0; margin-top: 12px; }
  .dh-atk__list { margin-top: 16px; line-height: 24px; }
  .dh-attacks__note { margin-top: 24px; font-size: 15px; line-height: 22px; text-wrap: balance; }

  /* ---- guard: the card, then the text and the four points */
  .dh-guard { padding: 72px 0; }
  .dh-guard__fig { width: 100%; }
  .dh-guard__txt { margin-top: 16px; }
  .dh-guard__h { font-size: 28px; line-height: 32px; letter-spacing: -0.02em; }
  .dh-guard__sub { margin-top: 14px; font-size: 16px; line-height: 24px; letter-spacing: -0.004em; }
  .dh-pts { grid-template-columns: minmax(0, 1fr); row-gap: 20px; margin-top: 28px; }
  .dh-pt { padding-top: 16px; }
  .dh-pt__t { font-size: 17px; line-height: 22px; letter-spacing: -0.006em; }

  /* ---- profiles: as on the phone main page — heading, text, the directory in two masonry columns, the ask */
  .dh-prof { padding: 104px 0; }
  .dh-prof__h { max-width: none; margin-left: -1px; font-size: 28px; line-height: 32px; letter-spacing: -0.02em; }
  .dh-prof__sub { max-width: none; margin-top: 14px; font-size: 16px; line-height: 24px; letter-spacing: -0.004em; }
  .dh-dir { display: flex; align-items: flex-start; gap: 20px; columns: auto; margin-top: 36px; padding-top: 0; }
  .dh-dir__col { display: block; flex: 1 1 0; min-width: 0; width: auto; }
  .dh-dir:not(.is-masonry) .dh-dir__col { flex: none; width: calc(50% - 10px); }
  .dh-dir:not(.is-masonry) { flex-wrap: wrap; }
  .dh-dir__pcol { flex: 1 1 0; min-width: 0; }
  .dh-grp { padding-bottom: 0; }
  .dh-grp + .dh-grp { margin-top: 32px; }
  .dh-grp__l { margin-top: 10px; }
  .dh-grp__l li { padding-block: 0; font-size: 15px; line-height: 20px; letter-spacing: -0.003em; text-wrap: wrap; }
  .dh-grp__l li + li { margin-top: 6px; }
  .dh-prof__ask { margin-top: 44px; padding-top: 0; }
  .dh-prof__a { font-size: 16px; line-height: 24px; letter-spacing: -0.004em; }
  .dh-prof__btn { margin-top: 20px; }

  /* ---- players: head, the gamepad and the server, the two ways stacked */
  .dh-players { padding: 72px 0; }
  .dh-players__in { margin-top: 28px; }
  .dh-players__fig { width: 100%; margin-bottom: 8px; }
  .dh-way { padding: 24px; }
  .dh-way--old { padding-top: 8px; }
  .dh-way__i { --sz: 20; left: 24px; }
  .dh-way--old .dh-way__i { top: 11px; }
  .dh-way--ours .dh-way__i { top: 27px; }
  .dh-way__t { padding-left: 32px; font-size: 20px; line-height: 26px; }
  .dh-way__d { max-width: none; }
  /* the steps one under the other, their texts on one edge (the first has no separator) */
  .dh-flow, .dh-way--old .dh-flow, .dh-way--ours .dh-flow { flex-direction: column; margin-top: 14px; row-gap: 4px; font-size: 15px; line-height: 22px; }
  .dh-flow .tw { width: auto; }
  .dh-flow__s:first-child { padding-left: 32px; }
  .dh-flow__sep { --sz: 16; margin: 3px 8px 0; }
  .dh-flow__x { --sz: 14; margin: 4px 9px 0; }
  .dh-way__rod, .dh-way--old .dh-way__rod, .dh-way--ours .dh-way__rod { width: 100%; margin-top: 16px; }
  .dh-way--ours { margin-top: 12px; border-radius: 24px; }

  /* ---- questions: head left, the list under it */
  .dh-faq { padding: 104px 0; }
  .dh-faq__h { margin-left: -1px; font-size: 32px; line-height: 36px; letter-spacing: -0.028em; }
  .dh-faq__sub { width: auto; margin-top: 12px; font-size: 16px; line-height: 24px; }
  .dh-faq__btn { --h: 44px; --px: 22px; margin-top: 20px; font-size: 15px; }
  .dh-acc { margin-top: 36px; }
  .dh-acc__it { padding-bottom: 20px; }
  .dh-acc__q { gap: 16px; padding-top: 20px; }   /* a one-line question = a 44 px tap target */
  .dh-acc__q::after { bottom: -20px; }
  .dh-acc__qt { flex: 1 1 auto; font-size: 18px; line-height: 24px; letter-spacing: -0.01em; text-wrap: balance; }
  .dh-acc__ico { margin-top: 0; }
  .dh-acc__a { padding: 10px 0 0; font-size: 16px; line-height: 24px; }

  /* ---- price */
  .dh-price { padding: 72px 0; }
  .dh-price__v { font-size: 96px; line-height: 96px; }
  .dh-price__h { margin-top: 12px; padding: 0; font-size: 26px; line-height: 30px; letter-spacing: -0.02em; text-wrap: balance; }
  .dh-price__pts { margin-top: 24px; font-size: 16px; line-height: 24px; }
  .dh-price__cta { align-self: stretch; margin-top: 32px; }
}

/* ≥ 1921: the content stops growing at 1920 (tokens --wrap-max) — the panorama and its stages too; the attack then runs in
   out of the dark instead of from a hard edge in the middle of the screen */
@media (min-width: 1921px) {
  .dh-path { max-width: var(--wrap-max); margin: -24px auto 0; }
  .dh-path__img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
  .dh-stages { max-width: var(--wrap-max); margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-acc .acc__a, .dh-acc .acc__a > .acc__in > * { transition: none; }
}
/* the narrowest phones: the backbone's two-line head keeps its two lines */
@media (max-width: 380px) {
  .dh-backbone__h { font-size: 29px; line-height: 34px; }
}
