/* =========================================================================
   Создание сайтов на Тильде (/uslugi/razrabotka-i-dorabotka-sajtov/razrabotka-sajtov/sajt-na-tilde/)
   Первый экран — схема «сайт на Tilda собирается из блоков»: библиотека блоков редактора слева,
   страница справа, ниже публикация на свой домен и проверки после запуска.
   Пример карты страниц в «Что входит», шаги SEO-настройки, сроки в блоке цены.
   Таблицу «Tilda или WordPress» рисуют правила .fmt-table страницы создания сайтов: на странице
   подключены оба файла (pages/sozdanie-sajtov.css и этот).
   Префикс tlb-: tb- уже занят полосами сроков на странице SEO-аудита.
   Всё видно без JS и при «уменьшить движение»: поведение схемы — assets/js/scenes/tildabuild.js.
   ========================================================================= */

/* ---------- схема «сайт из блоков» ---------- */
.tlb { margin: 0 0 0 auto; width: 100%; max-width: 520px; display: grid; gap: 14px; padding: clamp(16px, 2.2vw, 24px); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(24, 38, 74, 0.72), rgba(17, 28, 51, 0.92)); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.tlb-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; color: var(--fog); font-size: 0.85rem; }
.tlb-top > span:first-child { color: #eef2fb; font-weight: 600; }
.tlb-own { color: var(--ok); font-weight: 600; }

/* редактор: библиотека блоков и страница */
.tlb-editor { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.6fr); gap: 10px; padding: 10px; border-radius: 16px; background: #e8ecf3; }
.tlb-lib { list-style: none; display: grid; align-content: start; gap: 6px; margin: 0; padding: 0; }
.tlb-lib li { padding: 6px 9px; border-radius: 8px; background: #fff; border: 1px solid #d9dfea; color: #4a5470; font-size: 0.72rem; font-weight: 600; line-height: 1.3; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.tlb-lib li.is-pick { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.tlb-page { display: grid; align-content: start; gap: 6px; min-height: 212px; padding: 8px; border-radius: 10px; background: #fff; }
.tlb-b { display: grid; gap: 5px; padding: 8px; border-radius: 8px; border: 1px solid #e3e8f1; transition: opacity 0.3s; }
.tlb.is-live .tlb-b.is-wait { opacity: 0; }
.tlb-b i { display: block; height: 5px; border-radius: 3px; background: #d5dcea; }
.tlb-b i.h { width: 72%; height: 9px; background: var(--ink); }
.tlb-b i.s { width: 54%; }
.tlb-b em { justify-self: start; width: 64px; height: 12px; border-radius: 999px; background: var(--signal); }
.tlb-b--cover { background: linear-gradient(135deg, #eef3ff, #dfe8ff); border-color: #cfdcff; }
.tlb-b--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tlb-b--cards span { height: 22px; border-radius: 6px; background: #eef1f7; }
.tlb-b--price { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.tlb-b--price small { color: var(--ink); font-size: 0.64rem; font-weight: 700; white-space: nowrap; }
.tlb-b--zero { position: relative; height: 30px; overflow: hidden; background: #0f1a33; border-color: #0f1a33; }
.tlb-b--zero span { position: absolute; border-radius: 50%; }
.tlb-b--zero span:nth-child(1) { left: 12%; top: 6px; width: 18px; height: 18px; background: var(--flow); }
.tlb-b--zero span:nth-child(2) { left: 42%; top: 10px; width: 46px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.55); }
.tlb-b--zero span:nth-child(3) { right: 10%; top: 4px; width: 22px; height: 22px; border-radius: 6px; background: var(--signal); transform: rotate(18deg); }
.tlb-b--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
.tlb-b--form i { height: 12px; border: 1px solid #d5dcea; background: #fff; }
.tlb-b--form b { padding: 2px 8px; border-radius: 999px; background: var(--signal); color: var(--ink); font-size: 0.6rem; font-weight: 700; white-space: nowrap; }

/* публикация на свой домен */
.tlb-pub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: var(--night-3); }
.tlb-dom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eef2fb; font-size: 0.86rem; font-weight: 600; }
.tlb-dom::before { content: ""; display: inline-block; width: 9px; height: 11px; margin-right: 8px; border-radius: 2px; border: 2px solid var(--ok); border-top-width: 4px; vertical-align: -1px; }
.tlb-pub b { padding: 4px 11px; border-radius: 999px; background: var(--ok); color: #06291c; font-size: 0.76rem; font-weight: 700; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.tlb-pub b.is-wait { background: var(--signal); color: var(--ink); }

.tlb-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tlb-checks li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--night-3); color: #eef2fb; font-size: 0.78rem; line-height: 1.2; transition: opacity 0.35s; }
.tlb-checks li::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.4 2.4 5-5.2' fill='none' stroke='%232fbf8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tlb.is-live .tlb-checks .is-wait { opacity: 0.25; }
.tlb-note { margin: 0; color: var(--fog-dim); font-size: 0.82rem; }

/* ---------- пример карты страниц ---------- */
.tlb-map { display: grid; gap: 14px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--radius-lg); background: var(--paper-2); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.tlb-map-top { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 0.85rem; }
.tlb-map-top span:first-child { color: var(--ink); font-weight: 650; }
.tlb-map-rows { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.tlb-map-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--paper-line); }
.tlb-map-rows code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-text); font-size: 0.86rem; font-weight: 600; }
.tlb-map-rows b { justify-self: end; padding: 2px 9px; border-radius: 999px; background: #e6edff; color: var(--flow-ink); font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.tlb-map-rows b.is-zero { background: var(--signal-soft); color: #8a5200; }
.tlb-map-rows small { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.4; }
.tlb-map-rule { display: grid; gap: 4px; padding: 11px 12px; border-radius: 12px; background: var(--night); color: #eef2fb; font-size: 0.9rem; line-height: 1.4; }
.tlb-map-rule b { color: var(--signal); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tlb-map-note { margin: 0; color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- SEO-настройка: четыре шага ---------- */
.tlb-steps { list-style: none; counter-reset: ts; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.tlb-steps li { counter-increment: ts; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.tlb-steps li::before { content: counter(ts); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--signal-soft); color: #8a5200; font-weight: 700; }
.tlb-steps b { font-weight: 650; font-size: 1.05rem; line-height: 1.3; }
.tlb-steps span { color: var(--fg-soft); font-size: 0.95rem; line-height: 1.45; }
.tlb-seo-note { margin: 24px 0 0; max-width: 60rem; color: var(--fg-soft); }

/* ---------- цена: сроки и соседние варианты ---------- */
.tlb-terms-h { margin: 0 0 12px; font-weight: 650; }
.tlb-terms dl { display: grid; gap: 0; margin: 0; }
.tlb-terms dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tlb-terms dt { color: var(--fg-soft); }
.tlb-terms dd { margin: 0; color: var(--fg); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.tlb-forks { margin-top: 20px; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .tlb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .tlb { margin: 0 auto; }
}
/* в мобильной таблице строки становятся блоками, а подпись без этого сжимается в узкую колонку */
@media (max-width: 860px) {
  .fmt-table caption { display: block; }
}
@media (max-width: 640px) {
  .tlb-editor { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 8px; padding: 8px; }
  .tlb-lib li { padding: 5px 7px; font-size: 0.68rem; }
  .tlb-page { min-height: 196px; }
  .tlb-steps { grid-template-columns: minmax(0, 1fr); }
  .tlb-steps li { grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; }
  .tlb-steps li::before { grid-row: span 2; }
  .tlb-terms dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tlb-terms dd { white-space: normal; }
}
@media (max-width: 380px) {
  .tlb-b--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tlb-b--cards span:nth-child(3) { display: none; }
}
