/* The site's own content pages (scripts/seo-pages): the owner's document page (offer.css) carried over to a text that sells,
   explains or answers. Shared tokens and components: assets/css/*.css. The FAQ block is not here: it is the site's (site.css,
   «FAQ»), because /vds carries one too.
     head   black, the first screen: crumbs, H1 64/68 −3.8 % centred (as «Публичная оферта»), the lead 19/28 #A1A1A6, the
            actions (52 px pills), for an article the dates 15/22 #8E8E93
     body   black, square top (it runs on under the head's rounded end), rounded bottom: one column of 800 (the document
            measure), text 17/28 #C7C7CC, parts 28/34 600, cards on graphite r24, tables in a graphite frame r24
     next   the FAQ (graphite, site.css) and the closing call (black), then the footer */

.cp-head, .cp-body { --cp-hdr: var(--header-h); }
@media (max-width: 1179px) { .cp-head, .cp-body { --cp-hdr: var(--mbar-h); } }

/* ==================================================================================================== head */
.cp-head { padding: 196px var(--M) 88px; text-align: center; }
.cp-title { max-width: 1100px; margin: 11px auto 0; font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -0.038em;
  padding-right: 0.038em; color: var(--t1); text-wrap: balance; }
.cp-lead { max-width: 760px; margin: 20px auto 0; font-size: 19px; line-height: 28px; letter-spacing: -0.006em; color: var(--t2);
  text-wrap: pretty; }
.cp-meta { margin-top: 16px; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; color: var(--t3); }
.cp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
@media (min-width: 601px) { .cp-title, .cp-lead { position: relative; top: 1px; } }

/* ==================================================================================================== body */
.cp-body { border-top-left-radius: 0; border-top-right-radius: 0; padding: 72px 0 calc(120px + var(--join)); }
.cp-body:last-child { padding-bottom: 136px; }
.cp-doc { box-sizing: content-box; max-width: 800px; margin: 0 auto; padding-inline: var(--M); color: var(--t-soft);
  font-size: 17px; line-height: 28px; letter-spacing: -0.003em; }
.cp-doc > * + * { margin-top: 20px; }
.cp-doc p { text-wrap: pretty; }
.cp-doc strong { font-weight: 600; color: var(--t1); }
.cp-doc a:not([class]) { color: var(--t1); text-decoration: underline; text-decoration-color: var(--hl-20); text-underline-offset: 3px;
  text-decoration-thickness: 1px; transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.cp-doc a:not([class]):focus-visible { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .cp-doc a:not([class]):hover { text-decoration-color: currentColor; } }
.cp-h2 { scroll-margin-top: calc(var(--cp-hdr) + 24px); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.014em;
  color: var(--t1); text-wrap: balance; }
.cp-doc > * + .cp-h2 { margin-top: 64px; }
.cp-h3 { font-size: 21px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; color: var(--t1); text-wrap: balance; }
.cp-doc > * + .cp-h3 { margin-top: 36px; }
.cp-doc > .cp-h2 + *, .cp-doc > .cp-h3 + * { margin-top: 16px; }

/* lists: a short rule for an item, a figure for a step */
.cp-list > li { position: relative; padding-left: 28px; }
.cp-list > li + li { margin-top: 10px; }
.cp-list > li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 10px; height: 2px; border-radius: 1px; background: var(--t3); }
.cp-ol { counter-reset: cp-ol; }
.cp-ol > li { position: relative; padding-left: 36px; counter-increment: cp-ol; }
.cp-ol > li + li { margin-top: 12px; }
.cp-ol > li::before { content: counter(cp-ol) '.'; position: absolute; left: 0; top: 0; min-width: 28px; font-weight: 500; color: var(--t3);
  font-variant-numeric: tabular-nums; }

/* cards: graphite tiles on the black sheet, two or three in a row */
.cp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-doc > .cp-cards { margin-top: 28px; }
.cp-card { padding: 28px 28px 30px; border-radius: var(--r-card); background: var(--graphite); }
.cp-card__h { font-size: 19px; line-height: 26px; font-weight: 600; letter-spacing: -0.008em; color: var(--t1); text-wrap: balance; }
.cp-card__k { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; line-height: 14px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--t3); }
.cp-card .cp-card__fig { margin-top: 6px; font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.024em; color: var(--t1);
  font-variant-numeric: tabular-nums; }
.cp-card .cp-card__fig small { font-size: 17px; font-weight: 500; letter-spacing: -0.006em; color: var(--t2); }
.cp-card > * + p, .cp-card > * + ul { margin-top: 10px; }
.cp-card > .cp-card__fig + * { margin-top: 14px; }
.cp-card p, .cp-card li { font-size: 16px; line-height: 25px; letter-spacing: -0.004em; color: var(--t2); }
.cp-card .cp-list > li { padding-left: 22px; }
.cp-card .cp-list > li::before { left: 2px; top: 12px; width: 8px; }
.cp-card .cp-list > li + li { margin-top: 6px; }

/* steps: numbered tiles */
.cp-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: cp-step; }
.cp-doc > .cp-steps { margin-top: 28px; }
.cp-step { position: relative; padding: 24px 28px 28px 76px; border-radius: var(--r-card); background: var(--graphite); counter-increment: cp-step; }
.cp-step::before { content: counter(cp-step); position: absolute; left: 24px; top: 22px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--hl-08); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--t1); font-variant-numeric: tabular-nums; }
.cp-step__h { font-size: 19px; line-height: 26px; font-weight: 600; letter-spacing: -0.008em; color: var(--t1); }
.cp-step p { margin-top: 8px; font-size: 16px; line-height: 25px; letter-spacing: -0.004em; color: var(--t2); }

/* a note: the condition a reader must not miss */
.cp-note { padding: 22px 26px 24px; border: 1px solid var(--hl-12); border-radius: 20px; background: var(--hl-03); }
.cp-doc > .cp-note { margin-top: 28px; }
.cp-note p { font-size: 16px; line-height: 25px; letter-spacing: -0.004em; color: var(--t-soft); }
.cp-note p + p { margin-top: 8px; }

/* tables: a graphite frame r24; a table wider than its place scrolls inside it, never the page */
.cp-tbl { border-radius: var(--r-card); background: var(--graphite); overflow: hidden; }
.cp-doc > .cp-tbl { margin-top: 28px; }
.cp-tbl__s { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.cp-tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; letter-spacing: -0.002em; font-variant-numeric: tabular-nums; }
.cp-tbl caption { padding: 18px 20px 4px; text-align: left; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--t1); }
.cp-tbl th { padding: 14px 20px; text-align: left; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0; color: var(--t3);
  white-space: nowrap; border-bottom: 1px solid var(--hl-10); }
.cp-tbl td { padding: 13px 20px; color: var(--t-soft); border-bottom: 1px solid var(--hl-06); vertical-align: top; }
.cp-tbl tr:last-child > td { border-bottom: 0; }
.cp-tbl td:first-child { color: var(--t1); font-weight: 500; }
.cp-tbl td a:not(.btn) { color: var(--t1); }
/* a price that orders: a small pill */
.cp-tbl .cp-buy { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; margin: -5px 0; border-radius: 16px;
  background: var(--hl-08); color: var(--t1); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease); }
.cp-tbl .cp-buy:focus-visible { background: var(--acc); }
@media (hover: hover) and (pointer: fine) { .cp-tbl .cp-buy:hover { background: var(--acc); } }
.cp-tbl .cp-buy .i { color: var(--t2); }
.cp-tbl .cp-buy:focus-visible .i { color: var(--t1); }
@media (hover: hover) and (pointer: fine) { .cp-tbl .cp-buy:hover .i { color: var(--t1); } }

/* the closing call: a graphite block with the page's two actions */
.cp-doc > .cp-cta { margin-top: 64px; }
.cp-cta { padding: 40px 40px 44px; border-radius: var(--r-block); background: var(--graphite); text-align: center; }
.cp-cta__h { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.024em; color: var(--t1); text-wrap: balance; }
.cp-cta p { max-width: 560px; margin: 12px auto 0; font-size: 17px; line-height: 26px; letter-spacing: -0.004em; color: var(--t2); text-wrap: pretty; }
.cp-cta .cp-actions { margin-top: 28px; }

/* the knowledge base: one card per article */
.cp-kb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-doc > .cp-kb { margin-top: 28px; }
.cp-kb__a { display: flex; flex-direction: column; min-height: 100%; padding: 26px 28px 28px; border-radius: var(--r-card); background: var(--graphite);
  color: var(--t1); text-decoration: none !important; transition: background-color var(--t-fast) var(--ease); }
.cp-kb__a:focus-visible { background: var(--grey-block); }
@media (hover: hover) and (pointer: fine) { .cp-kb__a:hover { background: var(--grey-block); } }
.cp-kb__h { font-size: 19px; line-height: 26px; font-weight: 600; letter-spacing: -0.008em; color: var(--t1); text-wrap: balance; }
.cp-kb__d { margin-top: 8px; font-size: 15px; line-height: 23px; letter-spacing: -0.002em; color: var(--t2); }
.cp-kb__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 15px; line-height: 22px;
  font-weight: 500; color: var(--t1); }
.cp-kb__more .i { transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cp-kb__a:hover .cp-kb__more .i { transform: translateX(2px); } }
.cp-kb-empty { padding: 28px; border-radius: var(--r-card); background: var(--graphite); color: var(--t2); text-align: center; }

/* ==================================================================================================== tablet */
@media (max-width: 1179px) {
  .cp-head { padding-top: calc(var(--mbar-h) + 72px); }
}
@media (max-width: 1023px) {
  .cp-head { padding-bottom: 56px; }
  .cp-body { padding: 56px 0 calc(96px + var(--join)); }
}
@media (max-width: 767px) {
  .cp-title { font-size: 52px; line-height: 56px; letter-spacing: -0.04em; padding-right: 0.04em; }
  .cp-cards, .cp-steps, .cp-kb { grid-template-columns: minmax(0, 1fr); }
}

/* ==================================================================================================== phone (the 390 system) */
@media (max-width: 600px) {
  .cp-head { padding: calc(var(--mbar-h) + 28px) var(--M) 40px; }
  .cp-head .crumbs { font-size: 14px; }
  .cp-title { margin-top: 12px; font-size: min(40px, calc((100vw - 2 * var(--M)) / 8.2)); line-height: 1.1; letter-spacing: -0.045em; padding-right: 0.045em; }
  .cp-lead { margin-top: 16px; font-size: 16px; line-height: 24px; letter-spacing: -0.004em; }
  .cp-meta { font-size: 14px; line-height: 20px; }
  .cp-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .cp-body { padding: 40px 0 calc(72px + var(--join)); }
  .cp-body:last-child { padding-bottom: 88px; }
  .cp-doc { font-size: 16px; line-height: 26px; letter-spacing: -0.004em; }
  .cp-doc > * + * { margin-top: 16px; }
  .cp-h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.012em; }
  .cp-doc > * + .cp-h2 { margin-top: 48px; }
  .cp-h3 { font-size: 19px; line-height: 26px; }
  .cp-doc > * + .cp-h3 { margin-top: 28px; }
  .cp-list > li { padding-left: 24px; }
  .cp-list > li::before { left: 2px; top: 12px; }
  .cp-card, .cp-kb__a { padding: 22px 22px 24px; border-radius: 20px; }
  .cp-step { padding: 20px 22px 22px 66px; border-radius: 20px; }
  .cp-step::before { left: 20px; top: 18px; }
  .cp-note { padding: 18px 20px 20px; border-radius: 18px; }
  .cp-tbl { border-radius: 20px; }
  .cp-tbl th { padding: 12px 14px; }
  .cp-tbl td { padding: 12px 14px; }
  .cp-tbl caption { padding: 16px 14px 2px; }
  .cp-cta { padding: 28px 22px 24px; border-radius: 24px; }
  .cp-cta__h { font-size: 26px; line-height: 32px; letter-spacing: -0.02em; }
  .cp-cta p { font-size: 16px; line-height: 24px; }
  .cp-cta .cp-actions { margin-top: 22px; }
}
/* phone: a table's rows are blocks of their own - the first cell is the row's heading, every other cell carries its
   column's name (data-label) above its value, two to a line (a six-column tariff table: vCPU, RAM and disk, then the
   two prices side by side; a four-column one: a value a line) - so nothing scrolls sideways where a row is the thing
   to choose */
@media (max-width: 600px) {
  .cp-tbl thead { display: none; }
  .cp-tbl table, .cp-tbl tbody { display: block; }
  .cp-tbl tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 16px 18px 18px;
    border-bottom: 1px solid var(--hl-08); }
  .cp-tbl tr:last-child { border-bottom: 0; }
  .cp-tbl td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; }
  .cp-tbl td:first-child { grid-column: 1 / -1; font-size: 16px; line-height: 22px; }
  .cp-tbl td + td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; line-height: 16px;
    font-weight: 500; color: var(--t3); }
  /* a four-column table (a comparison of three terms): one value a line, its column's name to its left */
  .cp-tbl--c4 tr { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cp-tbl--c4 td + td { position: relative; padding-left: 80px; }
  .cp-tbl--c4 td + td::before { position: absolute; left: 0; top: 5px; width: 72px; margin: 0; }
  .cp-tbl--c6 tr { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cp-tbl--c6 td:nth-child(n+2):nth-child(-n+4) { grid-column: span 2; }
  .cp-tbl--c6 td:nth-child(n+5) { grid-column: span 3; }
  .cp-tbl .cp-buy { margin: 2px 0 0; }
}
@media (max-width: 359px) {
  .cp-head .crumbs { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-kb__more .i, .cp-tbl .cp-buy { transition: none; }
}
