/* ==========================================================================
   Секции страницы. Mobile-first, десктопные правила — сразу за компонентом.
   ========================================================================== */

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 44px 0 52px;
}

.hero h1 {
  max-width: 15ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
  padding-top: 22px;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-facts b {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.32;
}

.hero-note {
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 26px;
  max-width: 44ch;
  padding-left: 14px;
}

.hero + .section {
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .hero {
    padding: 64px 0 76px;
  }

  .hero-actions {
    align-items: center;
    flex-direction: row;
  }

  .hero-facts {
    max-width: 560px;
  }

  .hero-facts b {
    font-size: 2.1rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 92px 0 104px;
  }

  .hero h1 {
    max-width: 17ch;
  }

  .hero .lede {
    font-size: 1.24rem;
    max-width: 46ch;
  }
}

/* --------------------------------------------------- 01 · маршрут-пруф */

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

.route {
  margin-top: 32px;
}

.route-node {
  display: flex;
  gap: 15px;
  padding-bottom: 24px;
  position: relative;
}

.route-node:last-child {
  padding-bottom: 0;
}

.route-node:not(:last-child)::before {
  background: var(--line-strong);
  bottom: 2px;
  content: "";
  left: 5px;
  position: absolute;
  top: 17px;
  width: 1px;
}

.route-dot {
  background: var(--paper-raise);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  height: 11px;
  margin-top: 6px;
  position: relative;
  width: 11px;
  z-index: 1;
}

.route-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.route-label {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.route-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-here .route-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.route-here .route-dot::after {
  animation: route-pulse 2.8s ease-out infinite;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  inset: -4px;
  position: absolute;
}

.route-here .route-label {
  font-weight: 700;
}

.route-here .route-note {
  color: var(--accent);
  font-weight: 500;
}

@keyframes route-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.1);
  }
}

.route-text {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 32px;
  max-width: 62ch;
  padding-top: 24px;
  text-wrap: pretty;
}

/* Цифры-доказательства: это результаты Алексея, не обещание клиенту. */
.proof {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  margin-top: 30px;
  padding-top: 28px;
}

.proof li {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.proof b {
  font-size: clamp(1.6rem, 6.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.proof span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 32ch;
}

.proof-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 24px;
  max-width: 56ch;
}

@media (min-width: 720px) {
  .proof {
    gap: 32px;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .route {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 44px;
  }

  .route-node {
    flex-direction: column;
    gap: 14px;
    padding: 0 20px 0 0;
  }

  .route-node:not(:last-child)::before {
    bottom: auto;
    height: 1px;
    left: 18px;
    top: 5px;
    width: calc(100% - 18px);
  }

  .route-dot {
    margin-top: 0;
  }

  /* подписи узлов встают на одну линию, даже когда название в две строки */
  .route-label {
    min-height: 2.7em;
  }
}

/* ----------------------------------------------------- 02 · две точки */

.cards-2 {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 20px;
}

.card-tag {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

@media (min-width: 720px) {
  .cards-2 {
    gap: 24px;
    grid-template-columns: 1fr 1fr;
  }

  .card {
    padding: 30px 26px;
  }
}

/* ------------------------------------------------------- главный переход */

.section-shift {
  background: var(--ink-slab);
  color: var(--paper);
}

.shift-claim {
  max-width: 17ch;
}

.shift-claim em {
  color: var(--accent-ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.shift-inner > p {
  color: var(--muted-ink);
  font-size: clamp(1rem, 3.8vw, 1.14rem);
  margin-top: 24px;
  max-width: 52ch;
  text-wrap: pretty;
}

/* -------------------------------------------------------- 03 · результат */

.results {
  margin-top: 32px;
}

.results li {
  border-top: 1px solid var(--line);
  column-gap: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 18px 0;
}

.results-num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.results h3 {
  margin-bottom: 4px;
}

.results p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .results li {
    grid-template-columns: 60px 300px 1fr;
    padding: 24px 0;
  }

  .results li > div {
    display: contents;
  }

  .results h3 {
    margin-bottom: 0;
  }

  .results p {
    max-width: 52ch;
  }
}

/* ------------------------------------------------------- 04 · программа */

.steps {
  margin-top: 32px;
}

.step {
  column-gap: 16px;
  display: grid;
  grid-template-columns: 30px 1fr;
  padding-bottom: 28px;
  position: relative;
  row-gap: 6px;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  background: var(--line-strong);
  bottom: 4px;
  content: "";
  left: 14px;
  position: absolute;
  top: 34px;
  width: 1px;
}

.step-num {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  font-family: var(--mono);
  font-size: 10px;
  height: 30px;
  justify-content: center;
  width: 30px;
  z-index: 1;
}

.step h3 {
  align-self: center;
  grid-column: 2;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 2;
}

@media (min-width: 720px) {
  .steps {
    column-gap: 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
  }

  .step {
    border-top: 1px solid var(--line);
    padding: 22px 0 26px;
  }

  .step:last-child {
    padding-bottom: 26px;
  }

  .step:not(:last-child)::before {
    display: none;
  }

  .step-num {
    background: transparent;
  }
}

/* ---------------------------------------------------------- 05 · формат */

.checks {
  margin-top: 32px;
}

.checks li {
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  padding: 14px 0 14px 26px;
  position: relative;
}

.checks li::before {
  color: var(--accent);
  content: "✓";
  font-family: var(--mono);
  font-size: 12px;
  left: 0;
  position: absolute;
  top: 15px;
}

.format-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 22px;
  max-width: 56ch;
}

.requirements {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  margin-top: 28px;
  padding: 20px;
}

.requirements-title {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.requirements ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.requirements li {
  background: var(--paper-alt);
  border-radius: 100px;
  font-size: 0.8rem;
  padding: 7px 13px;
}

@media (min-width: 720px) {
  .checks {
    column-gap: 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------- 06 · тарифы */

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

/* Дата старта — единственная честная срочность на странице. */
.start-line {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  display: inline-flex;
  font-size: 0.88rem;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 18px 10px 15px;
}

.start-line b {
  font-weight: 600;
}

.start-dot {
  background: var(--accent);
  border-radius: 50%;
  flex: none;
  height: 8px;
  position: relative;
  width: 8px;
}

.start-dot::after {
  animation: route-pulse 2.8s ease-out infinite;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  inset: -4px;
  position: absolute;
}

.pricing {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.plan {
  background: var(--paper-raise);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
}

.plan-badge {
  align-self: flex-start;
  background: var(--accent);
  border-radius: 100px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  padding: 6px 12px;
  text-transform: uppercase;
}

.plan-badge-quiet {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.plan-name {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.plan-price {
  font-size: clamp(2.1rem, 9vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan-price span {
  font-size: 0.48em;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-left: 5px;
}

.plan-for {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 14px;
}

.plan-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
  margin: 22px 0 26px;
  padding-top: 20px;
}

.plan-list li {
  font-size: 0.94rem;
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
}

.plan-list li::before {
  color: var(--accent);
  content: "✓";
  font-family: var(--mono);
  font-size: 11px;
  left: 0;
  position: absolute;
  top: 2px;
}

.plan-off {
  color: var(--muted);
}

.plan-list li.plan-off::before {
  color: var(--muted);
  content: "—";
}

.plan .cta {
  margin-top: auto;
  width: 100%;
}

.plan-note {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 12px;
  text-align: center;
}

.plan-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.plan-featured .plan-name,
.plan-featured .plan-for,
.plan-featured .plan-note {
  color: var(--muted-ink);
}

.plan-featured .plan-list {
  border-color: var(--line-ink);
}

.plan-featured .plan-list li::before {
  color: var(--accent-ink);
}

.plan-featured .plan-badge {
  background: var(--accent-ink);
  color: var(--ink);
}

/* Честный аргумент первого потока — стоит рядом с ценой, а не в подвале. */
.first-run {
  border-left: 2px solid var(--accent);
  margin-top: 20px;
  max-width: 60ch;
  padding-left: 16px;
}

.first-run-title {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.first-run p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Снятие риска — самый сильный блок на странице после цены. */
.guarantee {
  background: var(--paper-raise);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  margin-top: 36px;
  padding: 26px 22px;
}

.guarantee-title {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guarantee-claim {
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
  margin: 12px 0 14px;
  max-width: 20ch;
}

.guarantee > p:nth-of-type(3) {
  max-width: 62ch;
}

.guarantee-limit {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 62ch;
  padding-top: 16px;
}

.payflow {
  border-top: 1px solid var(--line-strong);
  margin-top: 38px;
  padding-top: 28px;
}

.payflow-title {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.payflow ol {
  display: grid;
  gap: 20px;
}

.payflow li {
  display: grid;
  gap: 14px;
  grid-template-columns: 27px 1fr;
}

.payflow li > span {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  font-family: var(--mono);
  font-size: 11px;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.payflow b {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.payflow p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.tariffs-help {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 30px;
  text-align: center;
}

.tariffs-help a {
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 900px) {
  .pricing {
    align-items: stretch;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing > :nth-child(1) {
    order: 2;
  }

  .pricing > :nth-child(2) {
    order: 1;
  }

  .pricing > :nth-child(3) {
    order: 3;
  }

  .plan {
    padding: 32px 28px;
  }

  .plan-featured {
    box-shadow: 0 20px 50px -28px rgba(22, 20, 15, 0.6);
  }

  .payflow ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* ------------------------------------------------------- 07 · сравнение */

.compare {
  margin-top: 30px;
}

/* На мобильном шапка таблицы липнет под шапкой сайта — подписи не дублируются
   в каждой строке, но всегда видно, к какому тарифу относится колонка. */
.compare-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 0;
  position: sticky;
  top: 58px;
  z-index: 5;
}

.compare-head span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.compare-head-blank {
  display: none;
}

.compare-cell::before {
  display: none;
}

.compare-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 0;
}

.compare-feature {
  font-size: 0.95rem;
  font-weight: 600;
  grid-column: 1 / -1;
  letter-spacing: -0.012em;
}

.compare-cell {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

@media (min-width: 900px) {
  .compare-head {
    gap: 16px;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 0 0 12px;
    position: static;
  }

  .compare-head span {
    font-size: 11px;
  }

  .compare-head-blank {
    display: block;
  }

  .compare-row {
    align-items: center;
    gap: 16px;
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .compare-feature {
    font-weight: 500;
    grid-column: auto;
  }
}

/* ----------------------------------------------------------- 08 · автор */

.section-author {
  background: var(--ink-slab);
  color: var(--paper);
}

/* Фото автора: положите файл в /public и раскомментируйте строку ниже.
   Пока переменная = none, ни одного лишнего запроса не уходит. */
.author {
  --portrait: none;
  display: grid;
  gap: 28px;
}

.author-portrait {
  align-items: center;
  background: var(--ink-soft);
  border: 1px solid var(--line-ink);
  border-radius: 50%;
  color: var(--paper);
  display: flex;
  flex: none;
  font-size: 26px;
  font-weight: 700;
  height: 96px;
  justify-content: center;
  letter-spacing: -0.02em;
  position: relative;
  width: 96px;
}

.author-portrait::after {
  background-image: var(--portrait);
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  content: "";
  inset: 0;
  position: absolute;
}

.author-copy > p {
  color: var(--muted-ink);
  margin-top: 18px;
  max-width: 58ch;
  text-wrap: pretty;
}

.author-list {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.author-list li {
  font-size: 0.95rem;
  line-height: 1.45;
  padding-left: 24px;
  position: relative;
}

.author-list li::before {
  color: var(--accent-ink);
  content: "→";
  font-family: var(--mono);
  font-size: 12px;
  left: 0;
  position: absolute;
  top: 1px;
}

.author-quote {
  border-left: 2px solid var(--accent-ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
  padding-left: 18px;
}

.author-copy .text-link {
  color: var(--paper);
  margin-top: 24px;
}

@media (min-width: 900px) {
  .author {
    align-items: start;
    gap: 56px;
    grid-template-columns: 140px 1fr;
  }

  .author-portrait {
    font-size: 34px;
    height: 140px;
    width: 140px;
  }
}

/* --------------------------------------------------------- 09 · вопросы */

.faq {
  margin-top: 28px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  gap: 18px;
  justify-content: space-between;
  letter-spacing: -0.015em;
  list-style: none;
  padding: 18px 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary i {
  flex: none;
  height: 16px;
  margin-top: 5px;
  position: relative;
  width: 16px;
}

.faq summary i::before,
.faq summary i::after {
  background: var(--accent);
  content: "";
  position: absolute;
}

.faq summary i::before {
  height: 1px;
  left: 1px;
  top: 7px;
  width: 14px;
}

.faq summary i::after {
  height: 14px;
  left: 7px;
  top: 1px;
  transition: transform 200ms ease;
  width: 1px;
}

.faq details[open] summary i::after {
  transform: scaleY(0);
}

.faq details p {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 62ch;
  padding-bottom: 20px;
  text-wrap: pretty;
}

/* ------------------------------------------------------- финальный блок */

.section-closing {
  background: var(--ink);
  color: var(--paper);
}

.closing {
  align-items: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.closing .kicker {
  justify-content: center;
}

.closing h2 {
  max-width: 20ch;
}

.closing > p {
  color: var(--muted-ink);
  margin-top: 20px;
  max-width: 46ch;
}

.closing .cta {
  margin-top: 30px;
}

.closing-alt {
  border-top: 1px solid var(--line-ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 44px;
  padding-top: 30px;
  width: 100%;
}

.closing-alt p {
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.closing-alt a {
  align-self: center;
  border-bottom: 1px solid var(--line-ink);
  color: var(--paper);
  font-size: 0.95rem;
  padding-bottom: 5px;
  transition: border-color 160ms ease;
}

.closing-alt a:hover {
  border-color: var(--accent-ink);
}

@media (min-width: 720px) {
  .closing-alt {
    align-items: center;
    flex-direction: row;
    gap: 28px;
    justify-content: center;
  }

  .closing-alt p {
    margin-right: 4px;
  }
}
