/* css/variables.css */
/* Токены — сняты с сайта на Tilda (linkbox.ru), менять только осознанно. */

@font-face {
    font-family: 'Involve';
    src: url('../fonts/Involve-VF.woff') format('woff');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MabryPro';
    src: url('../fonts/MabryPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MabryPro';
    src: url('../fonts/MabryPro-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Цвета */
    --lb-bg: #f1f1f1;             /* фон всех страниц */
    --lb-surface: #ffffff;        /* тело тарифа, поля форм */
    --lb-surface-soft: #f6f6f6;   /* карточки цитат на контактах */
    --lb-text: #000000;
    --lb-text-muted: #6b6b6b;
    --lb-accent: #855cff;         /* кнопки, черты, плюсы */
    --lb-accent-hover: #6739f1;   /* наведение, активный пункт */
    --lb-accent-soft: #c3d0ff;    /* лавандовые карточки, линии аккордеона */
    --lb-navy: #001359;           /* шапка тарифа, кружки этапов */
    --lb-border: #e2e2e2;
    --lb-error: #d93025;
    --lb-success: #1a7f37;

    /* Шрифты: заголовки — MabryPro, текст — Involve (как на Tilda) */
    --lb-font-head: 'MabryPro', Arial, sans-serif;
    --lb-font-text: 'Involve', Arial, sans-serif;

    /* Размеры */
    --lb-container: 1160px;
    --lb-gutter: 20px;
    --lb-radius-sm: 8px;
    --lb-radius: 10px;
    --lb-radius-lg: 20px;
    --lb-section-y: 90px;
    --lb-header-h: 140px;

    --lb-shadow-card: 0 2px 3px rgba(0, 11, 48, 0.25);
    --lb-transition: 0.2s ease;
}

/* css/base.css */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Якоря не прячутся под липкой шапкой */
    scroll-padding-top: calc(var(--lb-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    background: var(--lb-bg);
    color: var(--lb-text);
    font-family: var(--lb-font-text);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--lb-transition);
}

a:hover {
    color: var(--lb-accent);
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--lb-font-head);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--lb-accent);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lb-skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--lb-accent);
    color: #fff;
    border-radius: var(--lb-radius-sm);
}

.lb-skip-link:focus {
    top: 12px;
    color: #fff;
}

/* ── Каркас ───────────────────────────────────────────── */

.lb-container {
    width: 100%;
    max-width: calc(var(--lb-container) + var(--lb-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--lb-gutter);
}

.lb-section {
    padding: var(--lb-section-y) 0;
}

.lb-section--tight {
    padding: 45px 0;
}

.lb-section__title {
    font-size: 42px;
    line-height: 1.23;
    margin-bottom: 80px;
}

.lb-section__title--center {
    text-align: center;
}

.lb-empty {
    color: var(--lb-text-muted);
}

/* ── Кнопки ───────────────────────────────────────────── */

.lb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 30px;
    border: 0;
    border-radius: var(--lb-radius);
    background: var(--lb-accent);
    color: #fff;
    font-family: var(--lb-font-text);
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--lb-transition), color var(--lb-transition), opacity var(--lb-transition);
}

.lb-btn:hover {
    background: var(--lb-accent-hover);
    color: #fff;
}

.lb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lb-btn--lg {
    min-height: 60px;
    min-width: 300px;
}

.lb-btn--sm {
    min-height: 45px;
    padding: 8px 24px;
    font-size: 14px;
}

.lb-btn--ghost {
    background: transparent;
    color: var(--lb-accent);
    box-shadow: inset 0 0 0 1.5px var(--lb-accent);
}

.lb-btn--ghost:hover {
    background: var(--lb-accent);
    color: #fff;
}

/* ── Карточка (лавандовая, как «Наши возможности») ───── */

.lb-card {
    background: var(--lb-accent-soft);
    border-radius: var(--lb-radius-lg);
    padding: 30px 30px 40px;
}

.lb-card__title {
    font-family: var(--lb-font-text);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.35;
}

.lb-card__line {
    display: block;
    height: 8px;
    margin: 30px 0 34px;
    background: var(--lb-accent);
}

.lb-card__text {
    font-size: 16px;
    line-height: 1.5;
}

/* ── Типографика текстов (статьи, документы, аккордеоны) ─ */

.lb-prose {
    font-size: 18px;
    line-height: 1.6;
}

.lb-prose > * + * {
    margin-top: 1em;
}

.lb-prose h2 {
    font-family: var(--lb-font-text);
    font-weight: 500;
    font-size: 24px;
    line-height: 1.35;
    margin-top: 1.6em;
}

.lb-prose h3 {
    font-size: 19px;
    margin-top: 1.6em;
}

.lb-prose ul,
.lb-prose ol {
    padding-left: 1.3em;
}

.lb-prose li + li {
    margin-top: 0.3em;
}

.lb-prose a {
    color: var(--lb-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lb-prose a.lb-btn {
    color: #fff;
    text-decoration: none;
}

.lb-prose strong {
    font-weight: 600;
}

/* css/header.css */
/* Шапка как на Tilda: строка «логотип — телефон, Войти», под ней меню.
   Липкая, фон страницы — контент под ней не просвечивает. */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--lb-bg);
    transition: box-shadow var(--lb-transition);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
}

.site-header__logo img {
    width: 198px;
    height: auto;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-header__phone {
    font-size: 14px;
    white-space: nowrap;
}

.site-header__login {
    min-width: 100px;
    min-height: 44px;
}

.site-header__bottom {
    display: flex;
    align-items: center;
    min-height: 60px;
}

.site-header__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 40px;
    list-style: none;
}

.site-header__menu a {
    font-size: 18px;
    line-height: 1.4;
}

.site-header__menu .current-menu-item > a,
.site-header__menu a.is-active {
    color: var(--lb-accent-hover);
}

.site-header__burger {
    display: none;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    border: 0;
    background: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.site-header__burger span {
    display: block;
    height: 2px;
    background: var(--lb-text);
    border-radius: 1px;
    transition: transform var(--lb-transition), opacity var(--lb-transition);
}

.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Мобильная панель — раскрывается под шапкой */
.site-nav-mobile {
    position: fixed;
    inset: var(--lb-header-h) 0 0 0;
    z-index: 99;
    overflow-y: auto;
    padding: 24px var(--lb-gutter) 40px;
    background: var(--lb-bg);
}

.site-nav-mobile[hidden] {
    display: none;
}

.site-nav-mobile__menu {
    list-style: none;
}

.site-nav-mobile__menu a {
    display: block;
    padding: 12px 0;
    font-size: 20px;
    border-bottom: 1px solid var(--lb-border);
}

.site-nav-mobile__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.site-nav-mobile__phone {
    font-family: var(--lb-font-head);
    font-weight: 700;
    font-size: 20px;
}

body.is-nav-open {
    overflow: hidden;
}

/* css/footer.css */
/* Подвал как на Tilda: ссылки слева, логотип и значок по центру,
   крупный телефон и реквизиты справа. */

.site-footer {
    padding: 75px 0 60px;
    background: var(--lb-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}

.site-footer__menu,
.site-footer__legal {
    list-style: none;
}

.site-footer__menu li + li {
    margin-top: 16px;
}

.site-footer__menu a,
.site-footer__legal a {
    font-size: 16px;
}

.site-footer__legal {
    margin-top: 64px;
}

.site-footer__legal li + li {
    margin-top: 8px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.site-footer__logo img {
    width: 160px;
}

.site-footer__badge {
    width: 160px;
    height: auto;
}

.site-footer__contacts {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__phone {
    font-family: var(--lb-font-head);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    white-space: nowrap;
}

.site-footer__email {
    margin-top: 20px;
    font-size: 16px;
}

.site-footer__req {
    margin-top: 130px;
    font-size: 16px;
    line-height: 1.35;
}

/* css/sections/01-hero.css */
/* Первый экран главной: текст слева, фирменный знак справа,
   светлые шевроны фоном за текстом. */

/* Как Zero-блок Tilda: артборд 650px, центрирован по высоте экрана. */
.lb-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: max(650px, calc(100vh - var(--lb-header-h)));
    padding: 40px 0 60px;
}

.lb-hero__bg {
    position: absolute;
    left: calc(50% - 714px);
    top: calc(50% - 218px);
    width: 803px;
    pointer-events: none;
}

.lb-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.lb-hero__content {
    max-width: 688px;
}

.lb-hero__title {
    font-size: 38px;
    line-height: 1.35;
}

.lb-hero__text {
    margin: 26px 0 40px;
    max-width: 549px;
    font-size: 16px;
    line-height: 1.3;
}

.lb-hero__mark {
    flex: none;
    width: 404px;
}

@media (max-width: 1199px) {
    .lb-hero__title { font-size: 32px; }
    .lb-hero__mark { width: 330px; }
}

/* css/sections/02-home.css */
/* Секции главной: возможности, кейсы, сценарии/FAQ, тарифы, этапы. */

/* ── Наши возможности ── */
.lb-potential__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    list-style: none;
}

/* ── Кейсы ── */
.lb-home-cases__inner {
    display: grid;
    grid-template-columns: 1fr 560px;
    gap: 40px;
}

.lb-home-cases__head .lb-section__title {
    margin-bottom: 50px;
}

.lb-home-cases__list {
    display: grid;
    gap: 40px;
}

.lb-case-card {
    padding: 40px 30px 50px;
}

.lb-case-card__icon {
    width: auto;
    height: 40px;
    margin: 12px 0 30px 12px;
}

.lb-case-card__title {
    font-family: var(--lb-font-text);
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 12px;
}

.lb-case-card__lead {
    font-size: 18px;
    margin-bottom: 28px;
}

.lb-case-card__points {
    padding-left: 20px;
    font-size: 18px;
    line-height: 1.55;
}

/* ── Сценарии и FAQ: заголовок слева, аккордеон справа ── */
.lb-split__inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
}

.lb-split__title {
    margin-bottom: 0;
}

.lb-accordion {
    border-top: 8px solid var(--lb-accent-soft);
}

.lb-accordion__item {
    border-bottom: 8px solid var(--lb-accent-soft);
}

.lb-accordion__head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 27px 0 27px 8px;
    list-style: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1.35;
}

.lb-accordion__head::-webkit-details-marker {
    display: none;
}

.lb-accordion__head:hover .lb-accordion__title {
    color: var(--lb-accent-hover);
}

/* Плюс из двух полос; в открытом состоянии поворачивается в крест */
.lb-accordion__icon {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    transition: transform var(--lb-transition);
}

.lb-accordion__icon::before,
.lb-accordion__icon::after {
    content: '';
    position: absolute;
    background: var(--lb-accent);
}

.lb-accordion__icon::before {
    left: 0;
    right: 0;
    top: 7px;
    height: 8px;
}

.lb-accordion__icon::after {
    top: 0;
    bottom: 0;
    left: 7px;
    width: 8px;
}

.lb-accordion__item[open] .lb-accordion__icon {
    transform: rotate(45deg);
}

.lb-accordion__title {
    transition: color var(--lb-transition);
}

.lb-accordion__body {
    padding: 0 8px 40px 50px;
    font-size: 16px;
}

/* ── Тарифы ── */
.lb-tariff__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    list-style: none;
}

.lb-tariff__card {
    display: flex;
    flex-direction: column;
    border-radius: var(--lb-radius-lg);
    background: var(--lb-surface);
    box-shadow: var(--lb-shadow-card);
    overflow: hidden;
    text-align: center;
}

.lb-tariff__head {
    min-height: 235px;
    padding: 20px 20px 30px;
    background: var(--lb-navy);
    color: #fff;
}

.lb-tariff__name {
    font-family: var(--lb-font-text);
    font-weight: 400;
    font-size: 22px;
}

.lb-tariff__line {
    display: block;
    height: 8px;
    margin: 20px 0 33px;
    background: #fff;
}

.lb-tariff__price {
    font-size: 24px;
    line-height: 1.3;
}

.lb-tariff__note {
    margin-top: 30px;
    font-size: 14px;
}

.lb-tariff__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 40px;
}

.lb-tariff__features {
    flex: 1;
    margin-bottom: 40px;
    list-style: none;
    font-size: 16px;
    line-height: 1.55;
}

.lb-tariff__features li + li {
    margin-top: 24px;
}

/* ── Внедрение и поддержка ── */
.lb-steps .lb-section__title {
    margin-bottom: 36px;
}

.lb-steps__subtitle {
    margin-bottom: 80px;
    text-align: center;
    font-size: 24px;
}

.lb-steps__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
}

.lb-steps__item {
    position: relative;
    padding-right: 24px;
}

/* Лавандовая линия между кружками */
.lb-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 60px;
    right: 0;
    top: 26px;
    height: 8px;
    background: var(--lb-accent-soft);
}

.lb-steps__num {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    border-radius: 50%;
    background: var(--lb-navy);
    color: #fff;
    font-family: var(--lb-font-head);
    font-weight: 700;
    font-size: 16px;
}

.lb-steps__label {
    display: block;
    font-size: 20px;
    line-height: 1.3;
}

.lb-steps__cta {
    margin-top: 80px;
    text-align: center;
}

/* css/sections/03-pages.css */
/* Внутренние страницы: шапка-карточка, «О нас», кейсы, контакты,
   юр-документы, 404. */

/* ── Шапка страницы: лавандовая карточка + шевроны ── */
.lb-page-hero {
    padding: 45px 0 60px;
}

.lb-page-hero__inner {
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 60px;
    align-items: center;
}

.lb-page-hero__card {
    display: flex;
    align-items: center;
    min-height: 300px;
    padding: 50px 60px;
    background: var(--lb-accent-soft);
    border-radius: 20px;
}

.lb-page-hero__title {
    min-width: 0;
    width: 100%;
    font-size: 34px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

/* Фиолетовая черта под заголовком — на всю ширину первых строк */
.lb-page-hero__title::after {
    content: '';
    display: block;
    width: 300px;
    max-width: 100%;
    height: 8px;
    margin-top: 16px;
    background: var(--lb-accent);
    opacity: 0.85;
}

.lb-page-hero__art {
    width: 100%;
    max-width: 540px;
    justify-self: end;
}

/* ── О нас ── */
.lb-about__title {
    max-width: 1000px;
    margin-bottom: 30px;
    font-family: var(--lb-font-text);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.35;
}

.lb-about__body {
    max-width: 1160px;
    letter-spacing: 0.04em;
}

.lb-about__photo {
    max-width: 860px;
    margin: 150px auto 0;
}

.lb-about__photo img {
    width: 100%;
    border-radius: 30px;
}

/* ── Кейсы (страница) ── */
.lb-cases-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: start;
}

.lb-cases-page__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 60px;
    padding: 32px 40px;
    border-radius: var(--lb-radius-lg);
    background: var(--lb-surface);
    font-size: 19px;
}

/* ── Контакты: цитаты контактных лиц ── */
.lb-people__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.lb-person {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lb-person__quote {
    margin: 0;
    padding: 40px 40px 100px;
    background: var(--lb-surface-soft);
    font-size: 16px;
    line-height: 1.55;
}

.lb-person__who {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -75px;
}

.lb-person__photo {
    width: 150px;
    height: 150px;
    margin-bottom: 14px;
    border-radius: 50%;
    object-fit: cover;
}

.lb-person__name {
    font-family: var(--lb-font-head);
    font-weight: 700;
    font-size: 17px;
}

.lb-person__role {
    margin-top: 2px;
    font-size: 14px;
    color: var(--lb-text-muted);
}

/* ── Контакты: телефон, почта, реквизиты ── */
.lb-requisites__contacts {
    margin: 0 0 70px;
    font-size: 24px;
    line-height: 1.5;
}

.lb-requisites__contacts div {
    display: flex;
    gap: 6px;
}

.lb-requisites__contacts dd {
    margin: 0;
}

.lb-table-wrap {
    overflow-x: auto;
}

.lb-requisites__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

.lb-requisites__table th,
.lb-requisites__table td {
    width: 50%;
    padding: 4px 6px;
    border: 1px solid var(--lb-border);
    text-align: left;
    vertical-align: top;
    font-weight: 400;
}

/* ── Контакты: форма ── */
.lb-contacts-form__inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    padding: 48px;
    border-radius: var(--lb-radius-lg);
    background: var(--lb-surface);
}

.lb-contacts-form__intro .lb-section__title {
    margin-bottom: 20px;
}

/* ── Юр-документы ── */
.lb-legal {
    font-size: 15px;
}

.lb-legal h2 {
    font-size: 20px;
}

/* ── 404 ── */
.lb-404__code {
    font-family: var(--lb-font-head);
    font-weight: 700;
    font-size: 120px;
    line-height: 1;
    color: var(--lb-accent);
}

.lb-404__lead {
    margin: 24px 0 32px;
    font-size: 20px;
}

.lb-404__lead a {
    color: var(--lb-accent);
    text-decoration: underline;
}

.lb-404__links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
}

/* css/sections/04-blog.css */
/* Блог: сетка карточек, статья с оглавлением-чипами. */

.lb-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
}

.lb-post-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lb-post-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 294 / 225;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--lb-accent-soft);
}

.lb-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lb-post-card__media:hover img {
    transform: scale(1.03);
}

.lb-post-card__title {
    font-family: var(--lb-font-text);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.35;
}

.lb-post-card__excerpt {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.lb-post-card__date {
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.lb-post-card__more {
    margin-top: 18px;
    font-size: 16px;
}

.lb-pagination {
    margin-top: 60px;
}

.lb-pagination .nav-links {
    display: flex;
    gap: 8px;
}

.lb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: var(--lb-radius-sm);
    background: var(--lb-surface);
}

.lb-pagination .page-numbers.current {
    background: var(--lb-accent);
    color: #fff;
}

/* ── Статья ── */
.lb-article__toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 60px;
    list-style: none;
}

.lb-article__toc a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    background: var(--lb-accent);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.lb-article__toc a:hover {
    background: var(--lb-accent-hover);
    color: #fff;
}

.lb-article__date {
    display: block;
    margin-bottom: 24px;
    font-size: 18px;
    letter-spacing: 0.1em;
}

.lb-article__body {
    letter-spacing: 0.02em;
}

.lb-article__body h2 {
    margin-top: 90px;
    letter-spacing: 0.04em;
}

.lb-article__cta {
    margin: 50px 0;
}

/* Шаги «как работает» (перенесены из блока Tilda t899) */
.lb-steps-list,
.lb-prose .lb-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
    padding: 0;
    list-style: none;
    counter-reset: lbstep;
}

.lb-prose .lb-steps li {
    position: relative;
    margin: 0;
    padding: 0 0 0 64px;
    counter-increment: lbstep;
    font-size: 18px;
    line-height: 1.4;
}

.lb-prose .lb-steps li::before {
    content: counter(lbstep);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lb-accent);
    color: #fff;
    font-family: var(--lb-font-head);
    font-weight: 700;
    font-size: 16px;
}

/* «Как было / как стало» (из блока Tilda t1033) */
.lb-compare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.lb-compare__col h3 {
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 8px solid var(--lb-accent);
    font-size: 22px;
}

.lb-compare__col p {
    margin-top: 16px;
}

.lb-compare__col strong {
    font-size: 22px;
}

.lb-related {
    padding-top: 30px;
}

/* css/sections/05-forms.css */
/* Формы заявки, модалка, виджет связи, cookie-уведомление. */

.lb-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lb-field--wide {
    grid-column: 1 / -1;
}

.lb-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.lb-field__req {
    color: var(--lb-accent);
}

.lb-field__opt {
    color: var(--lb-text-muted);
}

.lb-field__input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    background: var(--lb-surface);
    font-size: 15px;
    transition: border-color var(--lb-transition);
}

.lb-field__input:focus {
    outline: none;
    border-color: var(--lb-accent);
}

.lb-field__input--area {
    resize: vertical;
    min-height: 90px;
}

.lb-field__input[aria-invalid="true"] {
    border-color: var(--lb-error);
}

.lb-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lb-consent {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
}

.lb-consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--lb-accent);
}

.lb-consent a {
    color: var(--lb-accent);
    text-decoration: underline;
}

.lb-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.lb-form__submit {
    min-width: 200px;
    min-height: 46px;
}

.lb-form__status {
    font-size: 13px;
}

.lb-form__status.is-error {
    color: var(--lb-error);
}

.lb-form.is-done > :not([data-lead-done]) {
    display: none;
}

.lb-form__done-title {
    font-family: var(--lb-font-head);
    font-weight: 700;
    font-size: 22px;
}

.lb-form__done-text {
    margin-top: 8px;
}

/* ── Модалка ── */
.lb-modal {
    width: min(560px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--lb-radius-lg);
    background: var(--lb-bg);
    color: var(--lb-text);
}

.lb-modal::backdrop {
    background: rgba(0, 19, 89, 0.45);
}

.lb-modal__box {
    position: relative;
    padding: 40px 36px 36px;
}

.lb-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.lb-modal__close:hover {
    color: var(--lb-accent);
}

.lb-modal__title {
    font-size: 26px;
    margin-bottom: 10px;
}

.lb-modal__text {
    margin-bottom: 24px;
    font-size: 14px;
}

/* ── Виджет связи: круглая кнопка с ореолом, как на Tilda ── */
.lb-cw {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 90;
}

.lb-cw__toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--lb-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 6px rgba(133, 92, 255, 0.28);
    transition: background-color var(--lb-transition);
}

.lb-cw__toggle:hover {
    background: var(--lb-accent-hover);
}

.lb-cw__toggle svg {
    width: 20px;
    height: 20px;
}

.lb-cw__panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 320px;
    padding: 24px;
    border-radius: var(--lb-radius-lg);
    background: var(--lb-surface);
    box-shadow: 0 12px 40px rgba(0, 19, 89, 0.18);
}

.lb-cw__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    padding: 6px;
    border: 0;
    background: none;
    cursor: pointer;
}

.lb-cw__person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-cw__photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.lb-cw__name {
    font-family: var(--lb-font-head);
    font-weight: 700;
    font-size: 15px;
}

.lb-cw__role {
    font-size: 12px;
    color: var(--lb-text-muted);
}

.lb-cw__text {
    margin-top: 14px;
    font-size: 14px;
}

.lb-cw__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.lb-cw__actions[hidden] {
    display: none;
}

.lb-cw__link {
    text-align: center;
    font-size: 14px;
}

.lb-cw__form {
    margin-top: 18px;
}

.lb-cw__form .lb-form__submit {
    width: 100%;
}

/* ── Cookie ── */
.lb-cookie {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 460px;
    padding: 18px 20px;
    border-radius: var(--lb-radius);
    background: var(--lb-surface);
    box-shadow: var(--lb-shadow-card);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lb-cookie.is-visible {
    opacity: 1;
    transform: none;
}

.lb-cookie[hidden] {
    display: none;
}

.lb-cookie__text {
    font-size: 12px;
    line-height: 1.45;
}

.lb-cookie__text a {
    text-decoration: underline;
}

/* css/responsive.css */
/* Адаптивность — поверх всех секций. Брейкпоинты как у Tilda: 960 / 640 / 480. */

@media (max-width: 1199px) {
    .lb-section__title,
    .lb-split__title {
        font-size: 38px;
    }

    .lb-hero__bg {
        left: -120px;
    }

    .lb-home-cases__inner {
        grid-template-columns: 1fr 480px;
    }
}

/* Tilda переключала меню на бургер с 980px — повторяем. */
@media (max-width: 980px) {
    :root {
        --lb-section-y: 60px;
        --lb-header-h: 68px;
    }

    .site-header__bottom,
    .site-header__phone {
        display: none;
    }

    .site-header__top {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-header__actions {
        gap: 12px;
    }

    .site-header__burger {
        display: flex;
    }

    .lb-hero {
        min-height: 0;
        padding: 40px 0 70px;
    }

    .lb-hero__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .lb-hero__mark {
        width: 200px;
    }

    .lb-potential__grid,
    .lb-tariff__grid,
    .lb-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lb-home-cases__inner,
    .lb-split__inner,
    .lb-contacts-form__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lb-home-cases__head .lb-section__title {
        margin-bottom: 24px;
    }

    .lb-page-hero__inner {
        grid-template-columns: 1fr 260px;
        gap: 24px;
    }

    .lb-page-hero__card {
        min-height: 180px;
        padding: 32px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__contacts {
        justify-self: start;
        grid-column: 1 / -1;
    }

    .site-footer__req {
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    :root {
        --lb-gutter: 16px;
    }

    .lb-section__title,
    .lb-split__title {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .lb-hero__title,
    .lb-page-hero__title {
        font-size: 26px;
    }

    .lb-accordion__head,
    .lb-steps__subtitle {
        font-size: 20px;
    }

    .lb-hero__text {
        margin: 24px 0 32px;
    }

    .lb-hero__bg {
        display: none;
    }

    .lb-potential__grid,
    .lb-tariff__grid,
    .lb-post-grid,
    .lb-cases-page__grid,
    .lb-people__grid,
    .lb-compare,
    .lb-prose .lb-steps,
    .lb-form__grid {
        grid-template-columns: 1fr;
    }

    .lb-page-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .lb-page-hero__card {
        min-height: 0;
        padding: 32px 24px;
    }

    .lb-page-hero__art {
        display: none;
    }

    .lb-steps__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lb-steps__item {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 0 0 28px;
    }

    .lb-steps__num {
        flex: none;
        margin: 0;
    }

    /* Линия между кружками — вертикальная */
    .lb-steps__item:not(:last-child)::after {
        left: 22px;
        right: auto;
        top: 52px;
        bottom: 0;
        width: 8px;
        height: auto;
    }

    .lb-accordion__head {
        font-size: 17px;
        padding: 18px 0;
    }

    .lb-accordion__body {
        padding-left: 34px;
    }

    .lb-contacts-form__inner {
        padding: 28px 20px;
    }

    .lb-cases-page__cta {
        padding: 24px 20px;
    }

    .lb-btn--lg {
        width: 100%;
        min-width: 0;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .lb-cw {
        right: 16px;
        bottom: 16px;
    }

    .lb-cw__panel {
        width: calc(100vw - 32px);
    }

    .lb-cookie {
        left: 16px;
        right: 16px;
        bottom: 80px;
        max-width: none;
    }

    .lb-requisites__contacts {
        font-size: 17px;
    }

    .lb-requisites__table th,
    .lb-requisites__table td {
        display: block;
        width: 100%;
    }

    .lb-requisites__table th {
        border-bottom: 0;
        color: var(--lb-text-muted);
        font-size: 13px;
    }
}

