/* Главная страница. */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sec { padding: 64px 0; }
.eyebrow { font: 500 12px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.sec-head { margin-bottom: 30px; max-width: 640px; }
.sec-head h2 { font-weight: 300; font-size: clamp(30px, 6vw, 46px); line-height: 1.12; margin-top: 12px; }
.sec-head h2 b, .hero h1 b, .cta h2 b { font-weight: inherit; color: var(--accent); }
.sec-head p { color: var(--muted); margin-top: 14px; }
.card { background: var(--card); border-radius: 24px; }

/* первый экран */
.hero { position: relative; padding: 56px 0 40px; }
.hero::before { content: ''; position: absolute; inset: -64px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(var(--a), 0.13), transparent 70%); }
.hero-in { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-weight: 300; font-size: clamp(42px, 11vw, 78px); line-height: 1.04; margin: 18px 0 20px; }
.hero h1 .dim { color: var(--muted); }
.hero-desc { color: var(--soft); font-size: 17px; max-width: 520px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; max-width: 420px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 22px 0; margin-top: 44px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font: 300 38px/1.1 var(--display); color: var(--text); }
.stats span { color: var(--muted); font-size: 13px; }

/* макет приложения справа */
.mock { display: none; width: 330px; margin-left: auto; border-radius: 46px; padding: 22px 20px 20px; background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.025); text-align: center; }
.mock .wordmark { display: block; text-align: left; font-size: 18px; }
.mock-state { margin-top: 34px; font: 500 11px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.mock-big { font: 300 76px/1 var(--display); margin: 12px 0 4px; }
.mock-big small { font-size: 21px; color: var(--muted); margin-left: 8px; }
.mock-sub { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.mock .btn { width: 100%; height: 50px; pointer-events: none; }
.mock-row { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 22px; padding: 14px 16px 14px 18px; margin-top: 14px; text-align: left; font-size: 14px; }
.mock-row span { color: var(--muted); font-size: 12px; display: block; }
.mock-row i { font-style: normal; height: 32px; padding: 0 14px; border-radius: 16px; display: inline-flex; align-items: center; background: rgba(var(--a), 0.14); color: var(--accent); font-weight: 600; font-size: 13px; }
.mock-tabs { display: grid; grid-template-columns: repeat(3, 1fr); height: 56px; border-radius: 28px; padding: 5px; margin-top: 26px; background: rgba(40, 40, 44, 0.55); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 11px; font-weight: 500; color: var(--muted); }
.mock-tabs span { display: grid; place-items: center; border-radius: 23px; }
.mock-tabs span.on { color: var(--accent); background: rgba(255, 255, 255, 0.07); }

/* плитки */
.tiles { display: grid; gap: 14px; }
.tile { padding: 24px 22px; }
.tile .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: rgba(var(--a), 0.1); margin-bottom: 18px; }
.tile h3 { font-size: 21px; line-height: 1.25; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile p strong { color: var(--text); font-weight: 500; }

/* шаги */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { padding: 24px 22px; counter-increment: step; }
.step::before { content: counter(step); display: block; font: 300 46px/1 var(--display); color: var(--accent); margin-bottom: 16px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step p strong { color: var(--text); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; }

/* тарифы */
.trial { display: flex; flex-direction: column; gap: 16px; padding: 22px; margin-bottom: 14px; background: rgba(var(--a), 0.08); border: 1px solid rgba(var(--a), 0.22); border-radius: 24px; }
.trial h3 { font-size: 23px; }
.trial p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.prices { display: grid; gap: 14px; }
.price { padding: 26px 24px 24px; position: relative; display: flex; flex-direction: column; border: 1px solid transparent; }
.price.best { border-color: rgba(var(--a), 0.55); order: -1; }
.price .period { color: var(--muted); font-size: 14px; }
.price .best-tag { position: absolute; top: 22px; right: 22px; height: 28px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; background: rgba(var(--a), 0.14); color: var(--accent); font-weight: 600; font-size: 12px; }
.price .sum { font: 300 64px/1 var(--display); margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.price .sum small { font-size: 26px; color: var(--muted); margin-left: 6px; }
.price .per { color: var(--muted); font-size: 14px; }
.price .per b { color: var(--accent); font-weight: 500; }
.price ul { list-style: none; margin: 20px 0 22px; padding: 0; flex: 1; }
.price li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.price li.key { color: var(--text); }
.price li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 4px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.price .btn { width: 100%; }
.price:not(.best) .btn { background: rgba(255, 255, 255, 0.06); color: var(--text); }

/* сравнение */
.cmp { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 0; }
.cmp table { width: 100%; min-width: 560px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font: 500 12px var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
.cmp td:first-child { color: var(--text); }
.cmp .us { color: var(--accent); background: rgba(var(--a), 0.06); font-weight: 500; }
.cmp .no { color: rgba(240, 97, 109, 0.85); }
.cmp .mid { color: var(--soft); }
.hint { color: var(--muted); font-size: 13px; margin-top: 14px; opacity: 0.8; }

/* рефералы */
.ref-nums { display: grid; grid-template-columns: 1fr; margin-bottom: 14px; }
.ref-num { padding: 24px 22px; }
.ref-num + .ref-num { border-top: 1px solid var(--line); }
.ref-num b { display: block; font: 300 52px/1 var(--display); color: var(--accent); }
.ref-num h3 { font-size: 20px; margin: 12px 0 6px; }
.ref-num p { color: var(--muted); font-size: 15px; }
.ref-num small { display: block; color: var(--muted); font-size: 13px; opacity: 0.7; margin-top: 8px; }

/* вопросы */
.faq { padding: 4px 22px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font: 400 19px/1.3 var(--display); }
.faq-q::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform 0.25s; }
.faq-item.open .faq-q::after { transform: rotate(-135deg); margin-top: 6px; border-color: var(--accent); }
.faq-a { display: none; padding: 0 0 22px; color: var(--muted); font-size: 15px; max-width: 760px; }
.faq-item.open .faq-a { display: block; }
.faq-a strong { color: var(--text); font-weight: 500; }

/* призыв */
.cta { text-align: center; padding: 56px 24px; background: rgba(var(--a), 0.07); border: 1px solid rgba(var(--a), 0.2); border-radius: 36px; }
.cta h2 { font-weight: 300; font-size: clamp(30px, 6.4vw, 48px); line-height: 1.12; }
.cta p { color: var(--muted); max-width: 460px; margin: 16px auto 28px; }

/* новости */
.posts { display: grid; gap: 14px; }
.post { overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.post img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-body { padding: 18px 22px 22px; }
.post h3 { font-size: 21px; line-height: 1.3; margin: 8px 0 8px; color: var(--text); }
.post p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.post a { font-size: 14px; font-weight: 500; }
.post a:hover { text-decoration: underline; text-underline-offset: 3px; }
.more { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.more .btn { height: 46px; padding: 0 22px; font-size: 14px; }

@media (min-width: 600px) {
  .hero-cta { flex-direction: row; max-width: none; }
  .tiles, .posts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trial { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; }
  .ref-nums { grid-template-columns: repeat(3, 1fr); }
  .ref-num + .ref-num { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .sec { padding: 88px 0; }
  .hero { padding: 84px 0 56px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) 360px; }
  /* макет равняем по заголовку и кнопкам: маленькая надпись над заголовком в расчёт не идёт */
  .mock { display: block; margin-top: 36px; }
  .tiles.three, .posts { grid-template-columns: repeat(3, 1fr); }
  .tiles.four, .steps { grid-template-columns: repeat(4, 1fr); }
  .steps.three { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .price.best { order: 0; }
  .faq { padding: 6px 30px; }
}
