/*
 * Лендинг lp. Палитра взята с редизайна клиента (vue.spmodul.ru):
 * кремовый фон, почти чёрный текст, капсовые заголовки, скруглённые плитки.
 */
:root {
    --lp-bg: #fbf8f1;
    --lp-bg-soft: #eeeae0;
    --lp-ink: #232323;
    --lp-muted: #6b6760;
    --lp-line: #d9d4c7;
    --lp-white: #ffffff;
    --lp-error: #b42318;
    --lp-radius: 20px;
    --lp-container: 1200px;
}

* { box-sizing: border-box; }

body.lp {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-ink);
    font-family: "TT Firs Neue", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
/* Атрибут hidden слабее `img { display: block }` — без этого правила планировка рисуется под фото. */
[hidden] { display: none !important; }

.lp-container {
    width: min(100% - 32px, var(--lp-container));
    margin-inline: auto;
}

/* Шапка */
.lp-header { padding: 14px 0; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--lp-bg) 92%, transparent); backdrop-filter: blur(8px); }
.lp-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-nav { display: flex; gap: 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.lp-nav a { text-decoration: none; opacity: .75; }
.lp-nav a:hover { opacity: 1; }

.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 20px;
}
.lp-logo__sp { padding: 2px 6px; border: 2px solid var(--lp-ink); }
.lp-logo__modul { padding: 2px 6px; background: var(--lp-ink); color: var(--lp-white); }

/* Кнопки */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--lp-ink);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .06em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, border-color .15s;
}
.lp-btn--dark { background: var(--lp-ink); color: var(--lp-white); }
.lp-btn--dark:hover { background: var(--lp-white); color: var(--lp-ink); }
.lp-btn--light { background: var(--lp-white); color: var(--lp-ink); border-color: var(--lp-white); }
.lp-btn--light:hover { background: var(--lp-bg); }
.lp-btn--outline-light { background: transparent; color: var(--lp-white); border-color: var(--lp-white); }
.lp-btn--outline-light:hover { background: var(--lp-white); color: var(--lp-ink); }
.lp-btn:focus-visible { outline: 3px solid var(--lp-muted); outline-offset: 3px; }
.lp-btn:disabled { opacity: .6; cursor: progress; }

/* Hero */
.lp-hero {
    position: relative;
    min-height: min(82vh, 760px);
    display: flex;
    align-items: flex-end;
    color: var(--lp-white);
    background: var(--lp-ink) var(--lp-hero-img) center / cover no-repeat;
}
.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .65) 100%);
}
.lp-hero__inner { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.lp-hero__title {
    margin: 0 0 20px;
    max-width: 22ch;
    font-size: clamp(28px, 5vw, 60px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .01em;
    font-weight: 600;
}
.lp-hero__lead { margin: 0 0 28px; max-width: 56ch; font-size: clamp(16px, 2vw, 20px); opacity: .9; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero--thanks { min-height: 60vh; align-items: center; background-image: none; color: var(--lp-ink); }
.lp-hero--thanks::before { display: none; }
.lp-hero--thanks .lp-hero__lead { color: var(--lp-muted); }

/* Цифры доверия */
.lp-trust { padding: 28px 0; border-bottom: 1px solid var(--lp-line); }
.lp-trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lp-trust__item { display: grid; gap: 4px; }
.lp-trust__number { font-size: clamp(32px, 4vw, 48px); font-weight: 600; line-height: 1; }
.lp-trust__label { font-size: 14px; color: var(--lp-muted); }

/* Секции */
.lp-section { padding: clamp(40px, 7vw, 88px) 0; }
.lp-section--soft { background: var(--lp-bg-soft); }
.lp-section--dark { background: var(--lp-ink); color: var(--lp-white); }
.lp-section__head { margin-bottom: 28px; }
.lp-section__title {
    margin: 0 0 16px;
    font-size: clamp(22px, 3vw, 36px);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.1;
}
.lp-section__note { margin: 0; max-width: 70ch; color: var(--lp-muted); }
.lp-section--dark .lp-section__note { color: rgba(255, 255, 255, .7); }

/* Карточки */
.lp-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.lp-cards--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lp-card { background: var(--lp-white); border-radius: var(--lp-radius); padding: 24px; }
.lp-card--line { background: transparent; border: 1px solid var(--lp-line); }
.lp-card__title { margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.lp-card__text { margin: 0; color: var(--lp-muted); font-size: 15px; }

.lp-plus { margin-top: 24px; padding: 24px; border-radius: var(--lp-radius); border: 1px solid var(--lp-line); }
.lp-plus__title { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.lp-plus__text { margin: 0 0 12px; }
.lp-plus__extra { margin: 0; color: var(--lp-muted); font-size: 14px; }

/* Проекты */
.lp-projects {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.lp-project { background: var(--lp-white); border-radius: var(--lp-radius); overflow: hidden; display: flex; flex-direction: column; }
.lp-project__media { position: relative; aspect-ratio: 3 / 2; background: var(--lp-bg-soft); }
.lp-project__img { width: 100%; height: 100%; object-fit: cover; }
.lp-project__img--plan { object-fit: contain; background: var(--lp-white); padding: 8px; }
.lp-project__switch { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.lp-project__tab { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; color: var(--lp-ink); }
.lp-project__tab.is-active { background: var(--lp-ink); color: var(--lp-white); }
.lp-project__number { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(35, 35, 35, .85); color: var(--lp-white); font-size: 12px; letter-spacing: .05em; }
.lp-project__body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lp-project__title { margin: 0; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.lp-project__specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--lp-muted); text-transform: uppercase; letter-spacing: .04em; }
.lp-project__text { margin: 0; font-size: 15px; color: var(--lp-muted); flex: 1; }
.lp-project__prices { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-project__prices div { padding: 10px 12px; border-radius: 12px; background: var(--lp-bg); }
.lp-project__prices dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--lp-muted); }
.lp-project__prices dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; white-space: nowrap; }
.lp-project__cta { align-self: flex-start; }
.lp-projects__more { margin-top: 24px; }

/* Этапы */
.lp-steps {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.lp-steps__item {
    counter-increment: step;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--lp-radius);
    display: grid;
    gap: 6px;
}
.lp-steps__item::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 600;
    opacity: .5;
}
.lp-steps__title { text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.lp-steps__text { font-size: 14px; opacity: .75; }

/* Отзывы */
.lp-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lp-review { background: var(--lp-white); border-radius: var(--lp-radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.lp-review__text { margin: 0; font-size: 15px; flex: 1; }
.lp-review__meta { margin: 0; font-size: 13px; color: var(--lp-muted); }

/* FAQ */
.lp-faq { max-width: 820px; }
.lp-faq__item { border-top: 1px solid var(--lp-line); padding: 14px 0; }
.lp-faq__item:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-faq__q { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq__q::-webkit-details-marker { display: none; }
.lp-faq__q::after { content: "+"; font-size: 22px; line-height: 1; color: var(--lp-muted); }
.lp-faq__item[open] .lp-faq__q::after { content: "–"; }
.lp-faq__a { margin: 12px 0 0; color: var(--lp-muted); }

/* Форма заявки */
.lp-lead { background: var(--lp-bg-soft); border-radius: var(--lp-radius); padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lp-lead { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.lp-form { display: grid; gap: 14px; }
.lp-field { display: grid; gap: 6px; }
.lp-field__label { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--lp-muted); }
.lp-field__input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--lp-line); background: var(--lp-white); color: var(--lp-ink); }
.lp-field__input:focus { outline: 2px solid var(--lp-ink); outline-offset: 1px; }
.lp-field__error { font-size: 13px; color: var(--lp-error); min-height: 1em; }
.lp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--lp-muted); }
.lp-check input { margin-top: 3px; }
.lp-form__submit { justify-self: start; }
.lp-form__status { margin: 0; font-size: 14px; color: var(--lp-error); min-height: 1em; }

/* Подвал */
.lp-footer { padding: 24px 0 32px; font-size: 13px; color: var(--lp-muted); }
.lp-footer__copy { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Телефон */
@media (max-width: 767px) {
    .lp-nav { display: none; }
    .lp-header__cta { min-height: 40px; padding: 8px 16px; font-size: 12px; }
    .lp-project__prices { grid-template-columns: 1fr; }
}

/* ---------- Расширенные блоки ---------- */

/* Шапка: телефон */
.lp-header__contacts { display: flex; align-items: center; gap: 20px; }
.lp-header__phone { display: grid; text-decoration: none; text-align: right; line-height: 1.2; }
.lp-header__phone-number { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.lp-header__phone-hours { font-size: 11px; color: var(--lp-muted); }

.lp-hero__kicker { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }

.lp-cards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lp-card__spec { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); }

/* Таблицы */
.lp-table-wrap { overflow-x: auto; background: var(--lp-white); border-radius: var(--lp-radius); padding: 8px 16px 16px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-table__caption { text-align: left; padding: 12px 0 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.lp-table th, .lp-table td { padding: 10px 12px; border-top: 1px solid var(--lp-line); text-align: left; vertical-align: top; }
.lp-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--lp-muted); border-top: 0; }
.lp-table tbody th { font-weight: 600; white-space: nowrap; }
.lp-table__num { text-align: right; white-space: nowrap; font-weight: 600; }
.lp-table thead th:has(+ th):nth-child(n+3), .lp-table__num { text-align: right; }
.lp-price-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .lp-price-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.lp-price-side { display: grid; gap: 20px; }
.lp-compare { margin-top: 24px; }

.lp-extras, .lp-delivery { margin: 0; background: var(--lp-white); border-radius: var(--lp-radius); padding: 16px; display: grid; gap: 8px; }
.lp-extras__head, .lp-delivery__head { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; padding-bottom: 6px; }
.lp-extras__row, .lp-delivery__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--lp-line); font-size: 15px; }
.lp-extras__row dt, .lp-delivery__row dt { color: var(--lp-muted); }
.lp-extras__row dd, .lp-delivery__row dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* Две колонки: текст + медиа */
.lp-split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .lp-split { grid-template-columns: 1fr 1fr; } .lp-split--reverse .lp-split__text { order: 1; } .lp-split--reverse .lp-split__media { order: 2; } }
.lp-split__media img { border-radius: var(--lp-radius); width: 100%; }
.lp-split__text p { margin: 0 0 14px; color: var(--lp-muted); }
.lp-split__text .lp-btn { margin-top: 8px; }
.lp-checklist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.lp-checklist li { padding-left: 26px; position: relative; }
.lp-checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--lp-ink); border-bottom: 2px solid var(--lp-ink); transform: rotate(-45deg); }

/* Видео */
.lp-videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-video__poster { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.lp-video__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.lp-video__poster:hover img { opacity: 1; }
.lp-video__play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.lp-video__play::after { content: ""; position: absolute; left: 24px; top: 18px; border-left: 18px solid var(--lp-ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.lp-video__duration { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; }
.lp-video__frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; display: block; }
.lp-video__tag { margin: 12px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.lp-video__title { margin: 0; font-size: 15px; font-weight: 500; }

.lp-steps--light .lp-steps__item { border-color: var(--lp-line); background: var(--lp-white); }
.lp-steps--light .lp-steps__text { color: var(--lp-muted); opacity: 1; }

/* Текстовые страницы и SEO-текст */
.lp-prose p { max-width: 76ch; line-height: 1.6; }
.lp-prose h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .03em; margin: 28px 0 10px; }
.lp-prose--compact p { color: var(--lp-muted); margin: 0 0 14px; }
.lp-prose__inner { max-width: 860px; }

.lp-lead__messengers { margin: 16px 0 0; font-size: 14px; color: var(--lp-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lp-lead__messengers a { font-weight: 600; color: var(--lp-ink); }

/* Подвал */
.lp-footer { border-top: 1px solid var(--lp-line); padding-top: 40px; }
.lp-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 28px; }
@media (min-width: 768px) { .lp-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.lp-footer__about { margin: 12px 0 0; max-width: 40ch; }
.lp-footer__title { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-ink); }
.lp-footer__link { display: block; color: var(--lp-ink); text-decoration: none; font-weight: 600; margin-bottom: 4px; }
.lp-footer__muted { margin: 0 0 10px; }
.lp-footer__social { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-footer__social a { text-decoration: none; color: var(--lp-ink); }
.lp-footer__policy { color: var(--lp-ink); }
.lp-logo--footer { font-size: 16px; }

@media (max-width: 767px) {
    .lp-header__phone-hours { display: none; }
    .lp-header__phone-number { font-size: 13px; }
    .lp-header__contacts { gap: 10px; }
}
@media (max-width: 480px) {
    .lp-header__phone { display: none; }
}
