/* Remboard — общая стилистика дописанных блоков лендинга и страниц базы знаний.
   Палитра и шрифт взяты с лендинга: Rubik, синий #2a95d5, коралловый #eb5e57.
   Все селекторы под префиксом rb- , чтобы не пересекаться с классами Tilda. */

:root {
    --rb-blue: #2a95d5;
    --rb-blue-dark: #1772a9;
    --rb-blue-soft: #f2faff;
    --rb-coral: #eb5e57;
    --rb-lime: #c6ff0e;
    --rb-ink: #2b2727;
    --rb-muted: #524c4c;
    --rb-line: #e3edf4;
    --rb-radius: 18px;
    --rb-shadow: 0 8px 28px rgba(19, 60, 88, 0.08);
}

.rb-section {
    box-sizing: border-box;
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--rb-ink);
    padding: 72px 20px;
}

.rb-section *,
.rb-section *:before,
.rb-section *:after { box-sizing: border-box; }

.rb-section--soft { background: var(--rb-blue-soft); }

.rb-wrap { max-width: 1160px; margin: 0 auto; }

.rb-kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(42, 149, 213, 0.12);
    color: var(--rb-blue-dark);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.rb-h2 {
    margin: 0 0 16px;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.rb-lead {
    margin: 0 0 40px;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 300;
    color: var(--rb-muted);
}

/* Воронка заказа */
.rb-flow { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rb-step {
    position: relative;
    padding: 24px 22px 22px;
    background: #fff;
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
}

.rb-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--rb-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.rb-step__title { margin: 0 0 8px; font-size: 19px; font-weight: 500; line-height: 1.3; }
.rb-step__text { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 300; color: var(--rb-muted); }
.rb-step--accent { border-color: rgba(235, 94, 87, 0.45); }
.rb-step--accent .rb-step__num { background: var(--rb-coral); }

/* Плитки возможностей */
.rb-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rb-card {
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
}

.rb-section--soft .rb-card { box-shadow: var(--rb-shadow); }
.rb-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.rb-card__text { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 300; color: var(--rb-muted); }

/* Строка-ярлыки (интеграции, отчёты) */
.rb-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

.rb-tags li {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--rb-line);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 400;
}

/* Полоса цифр */
.rb-facts { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-fact { padding: 22px; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); }
.rb-fact__value { display: block; font-size: 30px; font-weight: 500; color: var(--rb-blue-dark); line-height: 1.1; }
.rb-fact__label { display: block; margin-top: 8px; font-size: 15px; font-weight: 300; color: var(--rb-muted); line-height: 1.45; }

/* Кнопки */
.rb-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 36px; }

.rb-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rb-btn--primary { background: var(--rb-blue); color: #fff; box-shadow: 0 8px 20px rgba(42, 149, 213, 0.28); }
.rb-btn--primary:hover { background: var(--rb-blue-dark); transform: translateY(-1px); }
.rb-btn--ghost { background: transparent; color: var(--rb-blue-dark); border: 1px solid var(--rb-blue); }
.rb-btn--ghost:hover { background: rgba(42, 149, 213, 0.08); }
.rb-note { font-size: 14px; font-weight: 300; color: var(--rb-muted); }

/* SEO-текст */
.rb-prose { max-width: 900px; font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--rb-muted); }
.rb-prose p { margin: 0 0 14px; }
.rb-prose strong { font-weight: 500; color: var(--rb-ink); }
.rb-prose a { color: var(--rb-blue-dark); }

/* ---------- Футер ---------- */
.rb-footer {
    box-sizing: border-box;
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #21313d;
    color: #cfdde8;
    padding: 64px 20px 28px;
}

.rb-footer *, .rb-footer *:before, .rb-footer *:after { box-sizing: border-box; }

.rb-footer__grid {
    display: grid;
    gap: 34px;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    max-width: 1160px;
    margin: 0 auto;
}

.rb-footer__brand { font-size: 24px; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.rb-footer__about { margin: 14px 0 0; font-size: 14px; line-height: 1.6; font-weight: 300; color: #9fb4c4; max-width: 340px; }
.rb-footer__title { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #7f96a8; }
.rb-footer__list { margin: 0; padding: 0; list-style: none; }
.rb-footer__list li + li { margin-top: 10px; }

.rb-footer a { color: #cfdde8; text-decoration: none; font-size: 15px; font-weight: 300; transition: color 0.2s ease; }
.rb-footer a:hover { color: #fff; }

.rb-footer__social { display: flex; gap: 12px; margin-top: 20px; }

.rb-footer__social a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid rgba(207, 221, 232, 0.28);
    border-radius: 100px;
    font-size: 14px;
}

.rb-footer__social a:hover { border-color: #fff; }

.rb-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    align-items: center;
    max-width: 1160px;
    margin: 44px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(207, 221, 232, 0.16);
    font-size: 14px;
    font-weight: 300;
    color: #8ba2b3;
}

.rb-footer__bottom a { font-size: 14px; }

/* ---------- Страницы базы знаний и документов ---------- */
.rb-page {
    margin: 0;
    background: #fff;
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--rb-ink);
    -webkit-font-smoothing: antialiased;
}

.rb-topbar { border-bottom: 1px solid var(--rb-line); background: #fff; }

.rb-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 20px;
}

.rb-topbar__logo { font-size: 21px; font-weight: 500; color: var(--rb-ink); text-decoration: none; }
.rb-topbar__nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: 12px; }
.rb-topbar__nav a { font-size: 15px; font-weight: 300; color: var(--rb-muted); text-decoration: none; }
.rb-topbar__nav a:hover { color: var(--rb-blue-dark); }
.rb-topbar__cta { margin-left: auto; display: flex; gap: 10px; }

.rb-topbar__cta a {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
}

.rb-topbar__cta a:first-child { color: var(--rb-blue-dark); border: 1px solid var(--rb-blue); }
.rb-topbar__cta a:last-child { background: var(--rb-blue); color: #fff; }

.rb-crumbs { max-width: 1160px; margin: 0 auto; padding: 20px 20px 0; font-size: 14px; font-weight: 300; color: #8a8585; }
.rb-crumbs a { color: var(--rb-blue-dark); text-decoration: none; }

.rb-article { max-width: 1160px; margin: 0 auto; padding: 24px 20px 72px; }
.rb-article--narrow { max-width: 820px; }

.rb-article h1 { margin: 10px 0 14px; font-size: 40px; line-height: 1.12; font-weight: 500; letter-spacing: -0.015em; }
.rb-article__lead { margin: 0 0 36px; font-size: 19px; line-height: 1.55; font-weight: 300; color: var(--rb-muted); max-width: 760px; }
.rb-article h2 { margin: 42px 0 14px; font-size: 26px; line-height: 1.25; font-weight: 500; }
.rb-article h3 { margin: 28px 0 10px; font-size: 19px; line-height: 1.3; font-weight: 500; }
.rb-article p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; font-weight: 300; color: #3d3a3a; }
.rb-article ul, .rb-article ol { margin: 0 0 18px; padding-left: 22px; }
.rb-article li { margin-bottom: 8px; font-size: 16px; line-height: 1.65; font-weight: 300; color: #3d3a3a; }
.rb-article strong { font-weight: 500; color: var(--rb-ink); }
.rb-article a { color: var(--rb-blue-dark); }
.rb-article code { padding: 2px 6px; border-radius: 6px; background: var(--rb-blue-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--rb-blue-dark); }

.rb-callout {
    margin: 22px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--rb-blue);
    border-radius: 0 12px 12px 0;
    background: var(--rb-blue-soft);
}

.rb-callout p { margin: 0; font-size: 15px; line-height: 1.6; }
.rb-callout--warn { border-left-color: var(--rb-coral); background: #fff4f3; }

.rb-toc { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }

.rb-toc a {
    display: block;
    height: 100%;
    padding: 20px 22px;
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rb-toc a:hover { border-color: var(--rb-blue); box-shadow: var(--rb-shadow); transform: translateY(-1px); }
.rb-toc__title { display: block; font-size: 18px; font-weight: 500; color: var(--rb-ink); margin-bottom: 6px; }
.rb-toc__text { display: block; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--rb-muted); }

.rb-group { margin: 40px 0 0; }
.rb-group > h2 { margin-bottom: 18px; }

.rb-next { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rb-line); }
.rb-next a { font-size: 15px; color: var(--rb-blue-dark); }

@media (max-width: 1000px) {
    .rb-flow, .rb-grid, .rb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-footer__grid { grid-template-columns: 1fr 1fr; }
    .rb-h2 { font-size: 32px; }
    .rb-article h1 { font-size: 32px; }
}

@media (max-width: 640px) {
    .rb-section { padding: 52px 18px; }
    .rb-flow, .rb-grid, .rb-grid--4, .rb-facts, .rb-toc { grid-template-columns: 1fr; }
    .rb-footer__grid { grid-template-columns: 1fr; }
    .rb-h2 { font-size: 27px; }
    .rb-lead { font-size: 16px; }
    .rb-article h1 { font-size: 27px; }
    .rb-article__lead { font-size: 17px; }
    .rb-topbar__nav { display: none; }
    .rb-topbar__cta { margin-left: auto; }
}

/* ---------- Запас по специфичности для лендинга ----------
   Tilda объявляет `#allrecords a{color:#ff8562}` — селектор по id, его не
   перебить классами. Дописанные блоки лежат внутри #allrecords, поэтому цвет
   ссылок в них проставляется через тот же id. На отдельных страницах (база
   знаний, документы) разметки Tilda нет, эти правила там просто не сработают,
   а основные выше — сработают. */
#allrecords .rb-section a.rb-btn--primary,
#allrecords .rb-section a.rb-btn--primary:hover { color: #fff; }
#allrecords .rb-section a.rb-btn--ghost { color: var(--rb-blue-dark); }
#allrecords .rb-section .rb-prose a,
#allrecords .rb-section .rb-lead a,
#allrecords .rb-section .rb-card a { color: var(--rb-blue-dark); text-decoration: underline; }
.rb-footer .rb-footer__list a,
.rb-footer .rb-footer__social a,
.rb-footer .rb-footer__bottom a { color: #cfdde8; }
.rb-footer .rb-footer__list a:hover,
.rb-footer .rb-footer__social a:hover,
.rb-footer .rb-footer__bottom a:hover { color: #fff; }
