/*
 * Лендинг «Поручни». Префикс .lp- — чтобы не пересекаться с классами unify.
 * Палитра завязана на фирменный синий темы (#3398dc).
 */

.lp {
    --lp-primary: #3398dc;
    --lp-primary-dark: #1f7ab8;
    --lp-accent: #ff8a00;
    --lp-accent-dark: #e5760a;
    --lp-dark: #16222f;
    --lp-dark-2: #1d3549;
    --lp-text: #2b3641;
    --lp-muted: #6b7c8d;
    --lp-line: #e3e9ef;
    --lp-bg: #f5f7fa;

    color: var(--lp-text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.lp h1, .lp h2, .lp h3, .lp h4 {
    color: #10202f;
    font-weight: 700;
    line-height: 1.2;
}

.lp section {
    padding: 64px 0;
}

.lp .lp-section-head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.lp .lp-section-head h2 {
    font-size: 32px;
    margin: 0 0 12px;
}

.lp .lp-section-head p {
    color: var(--lp-muted);
    font-size: 18px;
    margin: 0;
}

.lp-eyebrow {
    display: inline-block;
    color: var(--lp-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Кнопки
   ------------------------------------------------------------------ */
.lp-btn {
    display: inline-block;
    padding: 15px 32px;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.lp-btn:focus-visible {
    outline: 3px solid var(--lp-primary);
    outline-offset: 2px;
}

.lp-btn--accent {
    background: var(--lp-accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 138, 0, .32);
}

.lp-btn--accent:hover,
.lp-btn--accent:focus {
    background: var(--lp-accent-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.lp-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .35);
    padding: 13px 30px;
}

.lp-btn--ghost:hover,
.lp-btn--ghost:focus {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.lp-btn--block {
    display: block;
    width: 100%;
}

/* Hero
   ------------------------------------------------------------------ */
.lp-hero {
    position: relative;
    background: linear-gradient(135deg, var(--lp-dark) 0%, var(--lp-dark-2) 100%);
    color: #fff;
    padding: 56px 0 64px;
    overflow: hidden;
}

/* Диагональные полосы — намёк на рифление поручня, чистый CSS вместо картинки */
.lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg,
    rgba(255, 255, 255, .04) 0 2px,
    transparent 2px 16px);
    pointer-events: none;
}

.lp-hero > .container {
    position: relative;
    z-index: 1;
}

.lp-hero h1 {
    color: #fff;
    font-size: 42px;
    margin: 0 0 18px;
}

.lp-hero__lead {
    font-size: 19px;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 26px;
    max-width: 560px;
}

.lp-hero__lead b {
    color: #fff;
}

.lp-hero__list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.lp-hero__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, .9);
}

.lp-hero__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 9px;
    border-left: 3px solid var(--lp-accent);
    border-bottom: 3px solid var(--lp-accent);
    transform: rotate(-45deg);
}

/* Плашки категорий вместо цены: ведут к сравнению «стандарт/премиум» */
.lp-hero__cats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lp-hero__cat {
    display: block;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.lp-hero__cat:hover,
.lp-hero__cat:focus {
    border-color: var(--lp-accent);
    background: rgba(255, 255, 255, .12);
    text-decoration: none;
}

.lp-hero__cat-name {
    display: block;
    color: #fff;
    font-weight: 700;
}

.lp-hero__cat-note {
    display: block;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

/* Форма
   ------------------------------------------------------------------ */
.lp-form {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(6, 20, 33, .28);
    color: var(--lp-text);
}

.lp-form__title {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 6px;
}

.lp-form__note {
    color: var(--lp-muted);
    font-size: 14px;
    margin: 0 0 20px;
}

.lp-form .form-group {
    margin-bottom: 14px;
}

.lp-form .control-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-muted);
    margin-bottom: 5px;
    display: block;
}

.lp-form .form-control {
    height: auto;
    padding: 12px 14px;
    border: 1px solid var(--lp-line);
    border-radius: 4px;
    font-size: 16px; /* < 16px вызывает зум при фокусе на iOS */
    width: 100%;
    background: #fff;
    color: var(--lp-text);
}

.lp-form .form-control:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(51, 152, 220, .16);
    outline: none;
}

.lp-form textarea.form-control {
    min-height: 82px;
    resize: vertical;
}

.lp-form .help-block {
    color: #d64545;
    font-size: 13px;
    margin: 5px 0 0;
}

.lp-form .has-error .form-control {
    border-color: #d64545;
}

.lp-form__agreement {
    color: var(--lp-muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 14px 0 0;
    text-align: center;
}

.lp-form__agreement a {
    color: var(--lp-muted);
    text-decoration: underline;
}

/* Ловушка для ботов — вне экрана, но не display:none (часть ботов такие поля пропускает) */
.lp-form__trap {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Экран «спасибо» */
.lp-form__done {
    text-align: center;
    padding: 22px 8px;
}

.lp-form__done-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e8f6ec;
    color: #2f9e52;
    font-size: 27px;
    line-height: 58px;
}

.lp-form__done h3 {
    font-size: 21px;
    margin: 0 0 8px;
}

.lp-form__done p {
    color: var(--lp-muted);
    margin: 0;
}

/* Полоса фактов
   ------------------------------------------------------------------ */
.lp-facts {
    background: #fff;
    border-bottom: 1px solid var(--lp-line);
    padding: 40px 0;
}

.lp-fact {
    text-align: center;
    padding: 12px 8px;
}

.lp-fact__value {
    font-size: 34px;
    font-weight: 800;
    color: var(--lp-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.lp-fact__label {
    color: var(--lp-muted);
    font-size: 15px;
}

/* Категории
   ------------------------------------------------------------------ */
.lp-plans {
    background: var(--lp-bg);
}

.lp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 8px;
    padding: 30px 26px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.lp-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(16, 32, 47, .1);
}

.lp-plan--featured {
    border-color: var(--lp-primary);
    box-shadow: 0 10px 30px rgba(51, 152, 220, .16);
}

.lp-plan__badge {
    position: absolute;
    top: -13px;
    left: 26px;
    background: var(--lp-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
}

.lp-plan__name {
    font-size: 20px;
    margin: 0 0 4px;
}

.lp-plan__term {
    color: var(--lp-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

/* Бейджи внутри карточки: способы поставки или марки материалов */
.lp-plan__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--lp-line);
}

.lp-plan__tag {
    background: var(--lp-bg);
    border: 1px solid var(--lp-line);
    border-radius: 20px;
    color: var(--lp-text);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
}

.lp-plan__desc {
    color: var(--lp-muted);
    font-size: 15px;
    margin: 0 0 18px;
}

.lp-plan__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
}

.lp-plan__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    font-size: 15px;
}

.lp-plan__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 13px;
    height: 7px;
    border-left: 2px solid var(--lp-primary);
    border-bottom: 2px solid var(--lp-primary);
    transform: rotate(-45deg);
}

/* Спайка
   ------------------------------------------------------------------ */
.lp-splice {
    background: #fff;
}

.lp-splice__claim {
    background: linear-gradient(135deg, var(--lp-dark) 0%, var(--lp-dark-2) 100%);
    color: #fff;
    border-radius: 8px;
    padding: 34px;
}

.lp-splice__claim h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 14px;
}

.lp-splice__claim p {
    color: rgba(255, 255, 255, .82);
    margin: 0 0 14px;
}

.lp-splice__claim p:last-child {
    margin-bottom: 0;
}

.lp-profiles {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.lp-profile {
    flex: 1 1 120px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    padding: 14px 10px;
    text-align: center;
}

.lp-profile svg {
    display: block;
    margin: 0 auto 8px;
}

.lp-profile__name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.lp-steps-list {
    list-style: none;
    counter-reset: lp-step;
    padding: 0;
    margin: 0;
}

.lp-steps-list li {
    position: relative;
    counter-increment: lp-step;
    padding: 0 0 22px 56px;
    border-left: 2px solid var(--lp-line);
    margin-left: 17px;
}

.lp-steps-list li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.lp-steps-list li::before {
    content: counter(lp-step);
    position: absolute;
    left: -18px;
    top: -4px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--lp-primary);
    color: #fff;
    font-weight: 700;
    text-align: center;
    line-height: 35px;
}

.lp-steps-list h4 {
    font-size: 17px;
    margin: 0 0 4px;
}

.lp-steps-list p {
    color: var(--lp-muted);
    font-size: 15px;
    margin: 0;
}

/* Ремонт
   ------------------------------------------------------------------ */
.lp-repair {
    background: var(--lp-bg);
}

.lp-repair__card {
    background: #fff;
    border: 1px solid var(--lp-line);
    border-left: 4px solid var(--lp-accent);
    border-radius: 8px;
    padding: 26px;
    height: 100%;
}

.lp-repair__card h3 {
    font-size: 19px;
    margin: 0 0 10px;
}

.lp-repair__card p {
    color: var(--lp-muted);
    margin: 0;
    font-size: 15px;
}

/* Марки
   ------------------------------------------------------------------ */
.lp-brands {
    background: #fff;
}

.lp-brands__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
}

.lp-brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 78px;
    padding: 12px;
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    background: #fff;
}

.lp-brands__item img {
    /* width/height заданы атрибутами в разметке (против CLS); переопределяем,
       иначе логотипы разного соотношения сторон растягиваются в 120×54 */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
    opacity: .65;
    transition: opacity .15s ease;
}

.lp-brands__item:hover img {
    opacity: 1;
}

.lp-brands__rest {
    text-align: center;
    color: var(--lp-muted);
    font-size: 15px;
    margin: 0;
}

/* Финальный блок
   ------------------------------------------------------------------ */
.lp-cta {
    background: linear-gradient(135deg, var(--lp-dark) 0%, var(--lp-dark-2) 100%);
    color: #fff;
}

.lp-cta h2 {
    color: #fff;
    font-size: 30px;
    margin: 0 0 14px;
}

.lp-cta__lead {
    color: rgba(255, 255, 255, .8);
    font-size: 17px;
    margin: 0 0 26px;
}

.lp-contact {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 16px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

.lp-contact:hover,
.lp-contact:focus {
    color: var(--lp-accent);
    text-decoration: none;
}

.lp-contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--lp-accent);
    font-size: 17px;
}

/* Липкая полоса на мобильных — телефон всегда под рукой
   ------------------------------------------------------------------ */
.lp-sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid var(--lp-line);
    box-shadow: 0 -4px 18px rgba(16, 32, 47, .12);
    padding: 9px 12px;
    gap: 9px;
}

.lp-sticky .lp-btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 15px;
}

.lp-sticky__call {
    background: var(--lp-primary);
    color: #fff;
}

.lp-sticky__call:hover,
.lp-sticky__call:focus {
    background: var(--lp-primary-dark);
    color: #fff;
    text-decoration: none;
}

/* Адаптив
   ------------------------------------------------------------------ */
@media (max-width: 991px) {
    .lp-hero h1 {
        font-size: 34px;
    }

    .lp .lp-section-head h2 {
        font-size: 27px;
    }

    .lp-form {
        margin-top: 34px;
    }
}

@media (max-width: 767px) {
    .lp section {
        padding: 44px 0;
    }

    .lp-hero {
        padding: 38px 0 44px;
    }

    .lp-hero h1 {
        font-size: 27px;
    }

    .lp-hero__lead {
        font-size: 17px;
    }

    .lp .lp-section-head {
        margin-bottom: 30px;
    }

    .lp .lp-section-head h2 {
        font-size: 23px;
    }

    .lp-fact__value {
        font-size: 27px;
    }

    .lp-splice__claim,
    .lp-form {
        padding: 22px;
    }

    .lp-cta h2 {
        font-size: 24px;
    }

    /* Место под липкую полосу */
    .lp {
        padding-bottom: 66px;
    }

    .lp-sticky {
        display: flex;
    }
}

@media print {
    .lp-sticky {
        display: none;
    }
}
