/* src/components/DemoBlock/DemoBlock.css */
/* Layout spec §4 + `Home2.dc.html`/`Home1024.dc.html`/`HomeMobile.dc.html`:
   a full-bleed amber band, no radius — not a card. `.oj-demo-block` breaks
   out of `<main>`'s own max-width the same way `Header`/`Footer` sit outside
   it: a full-width box with only vertical padding, an inner row capped at
   1320px re-applying the shared side padding. The negative-margin breakout
   is why `base.css` sets `overflow-x: hidden` on `html` — `100vw` in the
   `calc()` below includes the scrollbar gutter some browsers give it, which
   would otherwise add a few px of horizontal scroll on every page. */
.oj-demo-block {
  background-color: var(--oj-amber);
  /* The mockup's own decorative pattern: a rounded-square grid fading in
     from the right, behind the number. Desktop/tablet only — `HomeMobile.
     dc.html`'s section has no background-image at all. */
  background-image:
    linear-gradient(90deg, var(--oj-amber) 42%, rgba(240, 180, 65, 0) 78%),
    url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27130%27%20height%3D%27130%27%3E%3Crect%20width%3D%27112%27%20height%3D%27112%27%20rx%3D%2732%27%20fill%3D%27rgba%2815%2C18%2C51%2C0.05%29%27%2F%3E%3C%2Fsvg%3E");
  background-size:
    auto,
    130px 130px;
  background-position:
    0 0,
    right -10px top 22px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 96px 0;
}

.oj-demo-block__inner {
  /* content-box: see ../Header/Header.css for why — same container bug. */
  box-sizing: content-box;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.oj-demo-block__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 760px;
}

.oj-demo-block__text h2 {
  margin: 0;
  font-family: var(--oj-font-display);
  font-weight: 600;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--oj-ink);
}

.oj-demo-block__description {
  margin: 0;
  max-width: 640px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--oj-ink);
}

.oj-demo-block__cta {
  margin-top: 12px;
  background: var(--oj-ink);
}

/* the ink button on yellow lightens to navy, as on the B2C home's yellow
   block (owner's call, 22.10: an 8% darkening of ink could not be seen) */
.oj-demo-block__cta:hover {
  background: var(--oj-navy);
  color: #fff;
}

.oj-demo-block__minutes {
  margin: 0;
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--oj-font-display);
  font-weight: 600;
  color: var(--oj-ink);
}

.oj-demo-block__value {
  font-size: 300px;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.oj-demo-block__label {
  font-size: 34px;
  letter-spacing: -0.03em;
}

@media (max-width: 1279px) {
  .oj-demo-block__inner {
    gap: 48px;
  }

  .oj-demo-block__text {
    max-width: 560px;
  }

  .oj-demo-block__text h2 {
    font-size: 64px;
  }

  .oj-demo-block__minutes {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .oj-demo-block__value {
    font-size: 200px;
    letter-spacing: -0.06em;
  }

  .oj-demo-block__label {
    font-size: 28px;
    padding-left: 8px;
  }
}

/* Layout spec §3's container table: side padding steps to 40px at the 768
   tablet tier (60px above it, 20px below 767) — this file only had the
   1279 and 767 steps, so at exactly 768 the "минут" column (`flex: none`)
   and the text column's own longest word together needed a few px more
   than the still-60px-padded row gave them (item 3). */
@media (max-width: 1023px) {
  .oj-demo-block__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 767px) {
  .oj-demo-block {
    background-image: none;
    padding: 56px 0;
  }

  .oj-demo-block__inner {
    padding: 0 20px;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
  }

  .oj-demo-block__text {
    max-width: none;
    gap: 18px;
  }

  .oj-demo-block__text h2 {
    font-size: 36px;
    line-height: 1.06;
    letter-spacing: -0.04em;
  }

  .oj-demo-block__description {
    max-width: none;
    font-size: 18px;
  }

  .oj-demo-block__cta {
    margin-top: 8px;
    width: 100%;
  }

  .oj-demo-block__minutes {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .oj-demo-block__value {
    font-size: 150px;
    letter-spacing: -0.07em;
  }

  .oj-demo-block__label {
    font-size: 24px;
    padding-left: 0;
  }
}


/* src/pages/Compare.css */
/* Layout spec §4/§5: Compare.dc.html (>=1280) / Compare1024.dc.html
   (1024-1279) grid tiers; Compare768.dc.html (768-1023) / CompareMobile.dc.html
   (<=767) horizontal-strip tiers. */

/* `<main>` carries no box model of its own (styles/base.css): this section
   owns the "full width, inner max-width 1320px + side padding,
   box-sizing: content-box" shape Header/Footer/DemoBlock use. Values are the
   section's own measured padding on each control-width artboard: 1440
   `96px 60px 120px`, 1024 `96px 60px`, 768 `80px 40px`, 390 `40px 20px 56px`. */
.oj-compare {
  /* `main` (styles/base.css) is `display: flex; flex-direction: column`;
     `.oj-compare` is its flex item, and — unlike Header/Footer/DemoBlock,
     which are plain block boxes outside any flex layout — a flex item's
     cross-axis stretch here does not shrink below the strip table's
     max-content width even with `min-width: 0` (tested: it doesn't).
     `width: 100%` forces the viewport-constrained size instead; `border-box`
     plus a max-width inflated by the 60+60 side padding keeps the content
     area at exactly 1320px once the viewport is wide enough to stop
     clamping — the same outcome `content-box` + `max-width: 1320px` gives a
     non-flex box, worked around because stretch ignores that here. */
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1320px + 120px);
  min-width: 0;
  margin: 0 auto;
  padding: 96px 60px 120px;
  display: flex;
  flex-direction: column;
}

.oj-compare h1 {
  margin: 0;
  font-size: 88px;
}

.oj-compare__legend {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.oj-compare__legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--oj-text-2);
}

.oj-compare__icon {
  flex: none;
  display: block;
  width: 20px;
  height: 20px;
}

.oj-compare__hint {
  display: none;
  margin: 16px 0 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 16px;
  color: var(--oj-text-2);
}

.oj-compare__hint span:last-child {
  font-family: var(--oj-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--oj-blue);
}

.oj-compare__scroll {
  min-width: 0;
  margin-top: 20px;
}

.oj-compare__table {
  width: 100%;
  /* separate, not collapse: each cell draws its own line, so the strip's
     sticky question column covers a scrolled cell's line too (Chromium
     paints collapsed borders above a sticky cell) */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.oj-compare__table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.oj-compare__table col {
  width: calc((100% - 210px) / 5);
}

.oj-compare__table col:first-child {
  width: 210px;
}

/* The header row stays part of the table (owner's call, over the layout
   spec's sticky header): it scrolls with the rows, down the page and
   sideways in the strip, never detached from them. */
.oj-compare__table thead th {
  background: var(--oj-bg);
  box-shadow: 0 1px 0 var(--oj-border);
  text-align: left;
  vertical-align: top;
}

.oj-compare__corner {
  background: var(--oj-bg);
}

.oj-compare__table thead th:not(.oj-compare__corner) {
  padding: 28px 18px 22px;
  border-radius: var(--oj-r-xl) var(--oj-r-xl) 0 0;
}

.oj-compare__table thead th.oj-compare__col--octojinn {
  background: var(--oj-navy);
}

.oj-compare__approach-name {
  display: block;
  font-family: var(--oj-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--oj-navy);
}

.oj-compare__col--octojinn .oj-compare__approach-name {
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--oj-surface);
}

.oj-compare__approach-desc {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--oj-muted);
}

.oj-compare__col--octojinn .oj-compare__approach-desc {
  color: var(--oj-slate-150);
}

.oj-compare__table th[scope="row"] {
  /* the question lines up with the cells' bold titles, not their icons: a
     cell's top padding + its 20px icon + the 10px gap (owner's call) */
  padding: 50px 18px 20px 0;
  border-top: 1px solid var(--oj-border);
  font-family: var(--oj-font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--oj-navy);
  text-align: left;
  vertical-align: top;
}

.oj-compare__table td {
  padding: 20px 18px;
  border-top: 1px solid var(--oj-border);
  vertical-align: top;
}

.oj-compare__table td.oj-compare__col--octojinn {
  background: var(--oj-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.oj-compare__table tbody tr:last-child td.oj-compare__col--octojinn {
  border-radius: 0 0 var(--oj-r-xl) var(--oj-r-xl);
}

.oj-compare__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.oj-compare__table td strong {
  font-size: 17px;
  line-height: 1.35;
  color: var(--oj-text);
}

/* `.oj-compare__table td` (0,1,2) beats a bare `.oj-compare__col--octojinn`
   (0,1,1) regardless of source order, so the dark default color above was
   winning over this one on the navy column — item 4. Matching the base
   selector's own `td` prefix restores the intended specificity order. */
.oj-compare__table td.oj-compare__col--octojinn strong {
  color: var(--oj-surface);
}

.oj-compare__table td span:not(.oj-compare__icon) {
  font-size: 15px;
  line-height: 1.5;
  color: var(--oj-muted);
}

.oj-compare__table td.oj-compare__col--octojinn span:not(.oj-compare__icon) {
  color: var(--oj-slate-150);
}

.oj-compare__footnote {
  margin: 36px 0 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--oj-muted);
}

/* 1024-1279: Compare1024.dc.html — narrower first column, smaller type. */
@media (max-width: 1279px) {
  .oj-compare {
    padding: 96px 60px;
  }

  .oj-compare__table col {
    width: calc((100% - 150px) / 5);
  }

  .oj-compare__table col:first-child {
    width: 150px;
  }

  .oj-compare__table thead th:not(.oj-compare__corner) {
    padding: 22px 12px 18px;
    border-radius: 22px 22px 0 0;
  }

  .oj-compare__col--octojinn .oj-compare__approach-name {
    font-size: 19px;
  }

  .oj-compare__approach-name {
    font-size: 17px;
  }

  .oj-compare__approach-desc {
    font-size: 14px;
    line-height: 1.4;
  }

  .oj-compare__table th[scope="row"] {
    padding: 46px 12px 16px 0;
    font-size: 16px;
  }

  .oj-compare__table td {
    padding: 16px 12px;
  }

  .oj-compare__icon {
    width: 20px;
    height: 20px;
  }

  .oj-compare__table td strong {
    font-size: 15px;
  }

  .oj-compare__table td span:not(.oj-compare__icon) {
    font-size: 14px;
    line-height: 1.45;
  }

  .oj-compare__table tbody tr:last-child td.oj-compare__col--octojinn {
    border-radius: 0 0 22px 22px;
  }
}

@media (min-width: 1024px) {
  .oj-compare__icon {
    width: 22px;
    height: 22px;
  }
}

/* 768-1023 and <=767: Compare768.dc.html / CompareMobile.dc.html — a
   horizontal strip. The question column (th[scope=row]) is sticky on the
   left; the header row and every approach column scroll with the rows. */
@media (max-width: 1023px) {
  .oj-compare {
    padding: 80px 40px;
  }

  .oj-compare h1 {
    font-size: 68px;
  }

  .oj-compare__hint {
    display: flex;
  }

  /* No `scroll-snap-type` (the layout spec asks for one): combined with the
     sticky question/OctoJinn columns inside a real `<table>`, Chrome's snap
     resolution repeatedly fought the actual scroll position in testing — an
     unwanted jump to mid-strip on first paint, and `scrollLeft` refusing to
     settle back at 0 after a drag or a plain `scrollTo({left: 0})`. Native
     momentum/touch scroll and the mouse-drag handler below still give the
     "slides to reveal the next system" feel without it; `overflow-anchor:
     none` guards against late web-font reflow nudging `scrollLeft` the same
     way snap did. */
  .oj-compare__scroll {
    --oj-compare-col2: 180px;
    --oj-compare-col: 220px;
    container-type: inline-size;
    overflow-x: auto;
    overflow-y: hidden;
    overflow-anchor: none;
    scrollbar-width: none;
    cursor: grab;
    /* Bleeds the strip to the viewport's right edge like the mockup; the
       left edge stays at the section's own inset, so the sticky OctoJinn
       column stops there and scrolled cells are clipped under it. */
    margin-right: -40px;
  }

  .oj-compare__scroll::-webkit-scrollbar {
    display: none;
  }

  /* An explicit sum, not `width: max-content`: with `table-layout: fixed`
     the declared column widths only hold when the table's own width is
     their sum. `--oj-compare-col2` is the OctoJinn column's (180 / 150). */
  .oj-compare__table {
    width: calc(160px + var(--oj-compare-col2) + 4 * var(--oj-compare-col));
    table-layout: fixed;
  }

  .oj-compare__table col {
    width: var(--oj-compare-col);
  }

  /* Room after the last column (owner's call): the strip scrolls on until
     the last column stands right against the stuck OctoJinn column, never
     under it, with empty page to its right — the strip's own width
     (`100cqw`) less the OctoJinn column and one approach column. */
  .oj-compare__track {
    width: max-content;
    padding-right: calc(100cqw - var(--oj-compare-col2) - var(--oj-compare-col));
  }

  .oj-compare__table col:first-child {
    width: 160px;
  }

  .oj-compare__table col:nth-child(2) {
    width: var(--oj-compare-col2);
  }

  /* Everything scrolls, the question column too; the OctoJinn column
     (header and body) stops at the strip's left edge once it gets there and
     the rest slide on under it (owner's call). */
  .oj-compare__table .oj-compare__col--octojinn {
    position: sticky;
    left: 0;
    z-index: 3;
  }

  .oj-compare__table thead th:not(.oj-compare__corner) {
    border-radius: 14px 14px 0 0;
    padding: 12px;
  }

  .oj-compare__col--octojinn .oj-compare__approach-name {
    font-size: 15px;
  }

  .oj-compare__approach-name {
    font-size: 15px;
    line-height: 1.25;
  }

  .oj-compare__approach-desc {
    display: none;
  }

  .oj-compare__table th[scope="row"] {
    padding: 46px 14px 16px 0;
    font-size: 15px;
  }

  .oj-compare__table td {
    padding: 16px 14px;
  }

  .oj-compare__table td strong {
    font-size: 15px;
  }

  .oj-compare__table td span:not(.oj-compare__icon) {
    font-size: 14px;
    line-height: 1.45;
  }

  .oj-compare__table tbody tr:last-child td.oj-compare__col--octojinn {
    border-radius: 0 0 14px 14px;
  }
}

@media (max-width: 767px) {
  .oj-compare {
    padding: 40px 20px 56px;
  }

  .oj-compare__scroll {
    --oj-compare-col2: 150px;
    --oj-compare-col: 200px;
    margin-right: -20px;
  }

  .oj-compare h1 {
    font-size: 44px;
  }

  .oj-compare__legend {
    margin-top: 24px;
  }

  .oj-compare__table {
    width: calc(122px + var(--oj-compare-col2) + 4 * var(--oj-compare-col));
  }

  .oj-compare__table col:first-child {
    width: 122px;
  }
}

/* The page's top space: one value for every inner page (`--oj-page-top`,
   base.css; owner's call, 09.11). Last in the file so it outranks the
   breakpoint rules above. */
.oj-compare {
  padding-top: var(--oj-page-top);
}


/* the page's own style attributes, moved here by scripts/build/inlineStyles.mjs */

