/* Лендинги (docs/product/site.md, «Лендинги»): поверх site.css главной, на тех же токенах. */

.landing-hero .hero-copy {
  max-width: 620px;
}
.landing-hero h1 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.04;
}

/* Крошки над заголовком: путь до главной, тихо. */
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 22px;
  padding: 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 10px;
  color: var(--rule);
}
.crumbs a {
  display: inline-block;
  padding: 11px 0;
  margin: -11px 0;
  color: inherit;
}

/* Скидка к Хэллоуину: одна строка под вводным абзацем, тыквенный цвет только у точки. */
.sale-line {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 500;
}
.sale-line::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: #e8761c;
  vertical-align: 0.1em;
}
.sale-left {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.sale-left[hidden] {
  display: none;
}

/* Коротко: четыре факта строкой под первым экраном. */
.facts {
  border-block: 1px solid var(--rule);
}
.facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.facts dl > div {
  padding: 26px 24px 28px 0;
}
.facts dl > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}
.facts dt {
  font-size: 14px;
  color: var(--ink-soft);
}
.facts dd {
  margin: 6px 0 0;
  font: 600 21px/1.25 var(--display);
}

.section.deep {
  background: var(--paper-deep);
}

/* Текст статьей: узкая колонка, чтобы строки читались. */
.prose {
  max-width: 760px;
}
.prose p {
  margin-top: 20px;
  font-size: 19px;
  color: var(--ink-soft);
}
.prose h2 + p {
  margin-top: 28px;
}

/* Шаги без картинок: номера крупно, колонок столько, сколько шагов. */
.steps.plain {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 56px;
}
.steps.plain li {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.steps.plain h3 {
  font-size: 23px;
}

/* Сравнение: таблица прокручивается сама, а не страница. */
.table-wrap {
  margin-top: 48px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--rule);
}
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 16px;
}
.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare thead th {
  font: 600 18px/1.25 var(--display);
  background: var(--paper-deep);
}
.compare tbody th {
  font-weight: 500;
  width: 26%;
}
.compare td {
  color: var(--ink-soft);
}
.deep .compare thead th {
  background: var(--paper);
}
.table-note {
  margin-top: 20px;
  max-width: 44em;
  font-size: 16px;
  color: var(--ink-soft);
}

/* Примеры записок: как открытка у вазы — антиква, курсив. */
.notes {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.notes li {
  padding: 24px 26px 28px;
  border-radius: 20px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--tile-border);
}
.note-to {
  font-size: 14px;
  color: var(--ink-soft);
}
.notes blockquote {
  margin: 10px 0 0;
}
.notes blockquote p {
  font: italic 400 21px/1.4 var(--display);
}

/* Плитки: подпись под ценой и отметка скидки в углу. */
.tile-note {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.tile-price s {
  margin-right: 4px;
  opacity: 0.7;
}
.tile-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8761c;
  color: #1c0d00;
  font-size: 14px;
  font-weight: 600;
}

/* Ещё поводы: ссылки на соседние лендинги. */
.related-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.related-list a {
  display: block;
  padding: 22px 0 26px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.related-name {
  display: block;
  font: 600 23px/1.2 var(--display);
}
.related-text {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-soft);
}
@media (hover: hover) and (pointer: fine) {
  .related-list a:hover .related-name {
    color: var(--accent-text);
  }
}

.final .updated {
  margin: 22px auto 0;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  .notes li {
    background: var(--paper-deep);
    box-shadow: inset 0 0 0 1px var(--rule);
  }
  .tile-note {
    padding: 0 20px;
  }
}

@media (max-width: 1080px) {
  .notes,
  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .facts dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts dl > div,
  .facts dl > div + div {
    padding: 18px 16px 20px 0;
    border-left: 0;
  }
  .facts dl > div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--rule);
  }
  .facts dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
  .facts dd {
    font-size: 18px;
  }
  .prose p {
    font-size: 17px;
  }
  .notes,
  .related-list {
    grid-template-columns: 1fr;
  }
  .notes blockquote p {
    font-size: 19px;
  }
  .table-wrap {
    margin-inline: calc(-1 * var(--gutter));
    border-radius: 0;
    border-inline: 0;
  }
}

/* На телефоне таблица — карточки строк: каждая ячейка со своей подписью, ничего не уходит за край. */
@media (max-width: 600px) {
  .table-wrap {
    overflow: visible;
  }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: auto;
  }
  .compare {
    min-width: 0;
  }
  .compare thead {
    display: none;
  }
  .compare tr {
    padding: 16px var(--gutter) 18px;
    border-bottom: 1px solid var(--rule);
  }
  .compare tbody tr:last-child {
    border-bottom: 0;
  }
  .compare th,
  .compare td,
  .compare tbody tr:last-child > * {
    padding: 0;
    border: 0;
  }
  .compare tbody th {
    width: auto;
    margin-bottom: 6px;
    font: 600 19px/1.3 var(--display);
  }
  .compare td + td {
    margin-top: 4px;
  }
  .compare td::before {
    content: attr(data-label) ': ';
    color: var(--ink);
    font-weight: 500;
  }
}

@media (max-width: 860px) and (prefers-color-scheme: dark) {
  .tile-note {
    padding: 0 12px;
  }
}
