
.lp,
.lp-contacts,
.lp-callbar {
    --lp-ink:        #0A1730;
    --lp-ink-2:      #12254A;
    --lp-brand:      #385AAB;
    --lp-brand-deep: #27448A;
    --lp-sky:        #9CC4FF;
    --lp-paper:      #F3F5FA;
    --lp-surface:    #FBFCFE;
    --lp-text:       #14213D;
    --lp-muted:      #51607A;
    --lp-line:       rgba(20, 33, 61, 0.14);
    --lp-on-dark:    #F4F7FD;
    --lp-on-dark-2:  rgba(244, 247, 253, 0.88);
    --lp-line-dark:  rgba(244, 247, 253, 0.38);

    --lp-f-text: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --lp-f-display: 'Geologica', 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --lp-display: clamp(2.5rem, 1.1rem + 4.6vw, 5.25rem);
    --lp-h2:      clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
    --lp-lead:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);

    --lp-gutter: clamp(20px, 4.2vw, 64px);
    --lp-section: clamp(64px, 8vw, 128px);

    --lp-r-control: 12px;
    --lp-r-box: 20px;

    --lp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --lp-ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
    --lp-fast: 180ms;
    --lp-base: 420ms;
    --lp-slow: 900ms;

    font-family: var(--lp-f-text);
}

.lp {
    background: var(--lp-paper);
    color: var(--lp-text);
}

.lp-h2 {
    font-family: var(--lp-f-display);
    font-size: var(--lp-h2);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1.5px solid transparent;
    border-radius: var(--lp-r-control);
    font: 700 1rem/1 var(--lp-f-text);
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color var(--lp-fast) ease,
        border-color var(--lp-fast) ease,
        color var(--lp-fast) ease,
        transform var(--lp-fast) var(--lp-ease-out);
}

.lp-btn:active { transform: scale(0.97); }

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

.lp-btn__icon { flex-shrink: 0; transition: transform var(--lp-base) var(--lp-ease-out); }

.lp-btn--light { background: var(--lp-on-dark); color: var(--lp-ink); }
.lp-btn--ghost { background: transparent; color: var(--lp-on-dark); border-color: var(--lp-line-dark); }
.lp-btn--ink   { background: var(--lp-brand); color: var(--lp-on-dark); }
.lp-btn--outline { background: var(--lp-surface); color: var(--lp-ink); border-color: var(--lp-line); }

@media (hover: hover) {
    .lp-btn--light:hover { background: #fff; }
    .lp-btn--light:hover .lp-btn__icon,
    .lp-btn--ink:hover .lp-btn__icon { transform: rotate(-14deg) scale(1.08); }
    .lp-btn--ghost:hover { border-color: var(--lp-on-dark); background: rgba(244, 247, 253, 0.08); }
    .lp-btn--ink:hover { background: var(--lp-brand-deep); }
    .lp-btn--outline:hover { border-color: var(--lp-ink); }
}

.lp-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: end;
    gap: clamp(24px, 3.4vh, 40px);
    min-height: min(100vh, 860px);
    min-height: min(100svh, 860px);
    padding: clamp(96px, 14vh, 160px) var(--lp-gutter) clamp(36px, 6vh, 64px);
    background: var(--lp-brand);
    color: var(--lp-on-dark);
    overflow: hidden;
}

.lp-hero__media {
    position: absolute;
    inset: -6% 0;    z-index: -2;
    transform: translate3d(0, var(--lp-parallax, 0px), 0);
    will-change: transform;
}

.lp-hero__poster,
.lp-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 86% 50%;}

.lp-hero__video {
    opacity: 0;
    transition: opacity 1.2s linear;
}

.lp-hero__video.is-on { opacity: 1; }

.lp-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(520px circle at var(--lp-mx, 74%) var(--lp-my, 40%), rgba(255, 255, 255, 0.22), transparent 70%),
        linear-gradient(90deg, rgba(47, 79, 156, 0.97) 0%, rgba(52, 85, 164, 0.92) 34%, rgba(56, 90, 171, 0.55) 56%, rgba(56, 90, 171, 0) 80%),
        linear-gradient(0deg, rgba(47, 79, 156, 0.6) 0%, transparent 30%);
}

.lp-hero__body { max-width: 46rem; }

.lp-hero__company {
    margin-bottom: clamp(20px, 3vh, 32px);
    font: 500 1rem/1.4 var(--lp-f-display);
    color: #CFE2FF;
}

.lp-hero__title {
    font-family: var(--lp-f-display);
    font-size: var(--lp-display);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: var(--lp-on-dark);
}

.lp-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.lp-line > span {
    display: block;
    transform: translateY(105%);
    animation: lpLineUp var(--lp-slow) var(--lp-ease-out) forwards;
}
.lp-line:nth-child(2) > span { animation-delay: 90ms; }
.lp-line:nth-child(3) > span { animation-delay: 180ms; color: #CFE2FF; }

@keyframes lpLineUp { to { transform: translateY(0); } }

.lp-hero__lead {
    max-width: 38rem;
    margin-top: clamp(20px, 3vh, 32px);
    font-size: var(--lp-lead);
    line-height: 1.55;
    color: var(--lp-on-dark-2);
    text-wrap: pretty;
}

.lp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(28px, 4vh, 44px);
}

.lp-hero__company,
.lp-hero__lead,
.lp-hero__actions,
.lp-hero__years {
    opacity: 0;
    animation: lpFade 700ms ease 520ms forwards;
}
.lp-hero__company { animation-delay: 0ms; }
.lp-hero__actions { animation-delay: 640ms; }
.lp-hero__years   { animation-delay: 760ms; }

@keyframes lpFade { to { opacity: 1; } }

.lp-hero__years {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    justify-self: start;
    padding-top: clamp(18px, 2.4vh, 28px);
    border-top: 1px solid var(--lp-line-dark);
}

.lp-hero__years-num {
    font: 600 clamp(2.75rem, 2rem + 2.4vw, 4rem)/0.82 var(--lp-f-display);
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    color: var(--lp-on-dark);
}

.lp-hero__years-label {
    padding-bottom: 4px;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--lp-on-dark-2);
}

.lp-services {
    display: grid;
    grid-template-columns: minmax(200px, 0.36fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 88px);
    padding: var(--lp-section) var(--lp-gutter);
}

.lp-services__aside {
    position: sticky;
    top: clamp(24px, 12vh, 120px);
    align-self: start;
}

.lp-services__count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: clamp(24px, 4vw, 48px);
    font-family: var(--lp-f-display);
    font-variant-numeric: tabular-nums;
}

.lp-services__current {
    font-size: clamp(3.5rem, 2rem + 5vw, 6.5rem);
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: var(--lp-brand);
}

.lp-services__total { font-size: 1.125rem; color: var(--lp-muted); }

.lp-services__progress {
    height: 2px;
    margin-top: 24px;
    background: var(--lp-line);
}

.lp-services__progress span {
    display: block;
    height: 100%;
    background: var(--lp-brand);
    transform: scaleX(var(--lp-progress, 0.077));
    transform-origin: left;
    transition: transform var(--lp-base) var(--lp-ease-out);
}

.lp-ledger { list-style: none; border-top: 1px solid var(--lp-line); }

.lp-ledger__row {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    padding: clamp(18px, 2.2vw, 28px) 0;
    border-bottom: 1px solid var(--lp-line);
    color: var(--lp-muted);
    transition: color var(--lp-base) ease, padding-left var(--lp-base) var(--lp-ease-out);
}

.lp-ledger__row::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--lp-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--lp-slow) var(--lp-ease-out);
}

.lp-ledger__num {
    font: 500 0.9375rem/1 var(--lp-f-display);
    font-variant-numeric: tabular-nums;
    transition: color var(--lp-base) ease;
}

.lp-ledger__text {
    font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-wrap: pretty;
}

.lp-ledger__row.is-current { color: var(--lp-ink); padding-left: 12px; }
.lp-ledger__row.is-current::after { transform: scaleX(1); }
.lp-ledger__row.is-current .lp-ledger__num { color: var(--lp-brand); }

.lp-ledger:not(.is-live) .lp-ledger__row { color: var(--lp-ink); }

.lp-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin: 0 var(--lp-gutter);
    padding: clamp(24px, 2.6vw, 36px) clamp(24px, 3vw, 44px);
    border-radius: var(--lp-r-box);
    background: linear-gradient(100deg, var(--lp-brand-deep) 0%, var(--lp-brand) 100%);
    color: var(--lp-on-dark);
}

.lp-price__title {
    flex: 1 1 22rem;
    max-width: 34ch;
    font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.lp-price__title .lp-word {
    opacity: 0.3;
    transition: opacity 500ms ease;
}
.lp-price__title .lp-word.is-lit { opacity: 1; }

.lp-price__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lp-price .lp-btn { min-height: 48px; padding: 0 20px; }

.lp-adv { padding: var(--lp-section) var(--lp-gutter); }

.lp-panels {
    display: flex;
    gap: 10px;
    height: clamp(380px, 40vw, 540px);
    margin-top: clamp(28px, 3.4vw, 52px);
    list-style: none;
}

.lp-panel {
    flex: 1 1 0;
    min-width: 0;
    transition: flex-grow 800ms var(--lp-ease-io);
}

.lp-panel.is-active { flex-grow: 5.5; }

.lp-panel__btn {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--lp-brand);
    color: var(--lp-on-dark);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lp-panel__btn:focus-visible {
    outline: 3px solid var(--lp-brand);
    outline-offset: 3px;
}

.lp-panel__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1400ms var(--lp-ease-out);
}

.lp-panel.is-active .lp-panel__img { transform: scale(1); }

.lp-panel__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(31, 58, 122, 0.94) 0%, rgba(31, 58, 122, 0.62) 30%, rgba(31, 58, 122, 0) 62%),
        linear-gradient(180deg, rgba(31, 58, 122, 0.5) 0%, rgba(31, 58, 122, 0) 22%),
        rgba(47, 79, 156, 0.74);
    transition: background-color 600ms ease;
}

.lp-panel.is-active .lp-panel__btn::after { background-color: rgba(47, 79, 156, 0); }

@media (hover: hover) {
    .lp-panel:not(.is-active) .lp-panel__btn:hover::after { background-color: rgba(47, 79, 156, 0.56); }
}

.lp-panel__num {
    position: absolute;
    top: clamp(18px, 2vw, 28px);
    left: clamp(18px, 2vw, 28px);
    font: 500 1rem/1 var(--lp-f-display);
    font-variant-numeric: tabular-nums;
}

.lp-panel__side,
.lp-panel__label {
    position: absolute;
    left: clamp(18px, 2vw, 28px);
    bottom: clamp(22px, 2.4vw, 34px);
    font-family: var(--lp-f-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: opacity 350ms ease, transform 700ms var(--lp-ease-out);
}

.lp-panel__side {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    max-height: calc(100% - 96px);
    font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
    line-height: 1.2;
    white-space: nowrap;
}

.lp-panel__label {
    width: min(26rem, calc(100vw - 2 * var(--lp-gutter) - 60px));
    font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(16px);
}

.lp-panel.is-active .lp-panel__side { opacity: 0; }
.lp-panel.is-active .lp-panel__label { opacity: 1; transform: none; transition-delay: 260ms; }

.lp-panel__timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--lp-on-dark);
    transform: scaleX(0);
    transform-origin: left;
}

.lp-panels.is-auto .lp-panel.is-active .lp-panel__timer {
    animation: lpTimer var(--lp-panel-time, 4s) linear forwards;
}

@keyframes lpTimer { to { transform: scaleX(1); } }

.lp-contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 32px clamp(32px, 5vw, 80px);
    padding: clamp(40px, 5vw, 72px) var(--lp-gutter);
    background: #fff;
    border-top: 1px solid var(--lp-line);
    color: var(--lp-text);
}

.lp-contacts__title {
    grid-column: 1 / -1;
    font-family: var(--lp-f-display);
    font-size: var(--lp-h2);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--lp-ink);
}

.lp-contacts__phone {
    justify-self: start;
    font-family: var(--lp-f-display);
    font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--lp-brand);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 3px no-repeat;
    padding-bottom: 0.1em;
    transition: background-size var(--lp-slow) var(--lp-ease-out), color var(--lp-fast) ease;
}

@media (hover: hover) {
    .lp-contacts__phone:hover { background-size: 100% 3px; color: var(--lp-brand-deep); }
}

.lp-contacts__phone:focus-visible,
.lp-contacts__grid a:focus-visible {
    outline: 3px solid var(--lp-brand);
    outline-offset: 4px;
    border-radius: 4px;
}

.lp-contacts__grid {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 24px clamp(28px, 4vw, 64px);
}

.lp-contacts__grid > div:last-child { grid-column: 1 / -1; }

.lp-contacts__grid dt {
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: var(--lp-muted);
}

.lp-contacts__grid dd {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    color: var(--lp-ink);
}

.lp-nowrap { white-space: nowrap; }

.lp-contacts__grid a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--lp-line);
    text-underline-offset: 4px;
    transition: text-decoration-color var(--lp-fast) ease, color var(--lp-fast) ease;
}

@media (hover: hover) {
    .lp-contacts__grid a:hover { color: var(--lp-brand); text-decoration-color: var(--lp-brand); }
}

.lp-callbar { display: none; }

@media (max-width: 1180px) {

    .lp-contacts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .lp-services { grid-template-columns: minmax(0, 1fr); }
    .lp-services__aside {
        position: static;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
    }
    .lp-services__count { margin-top: 0; }
    .lp-services__current { font-size: 2.5rem; }
    .lp-services__progress { display: none; }
}

@media (max-width: 768px) {
    .lp-hero {
        min-height: calc(100svh - 56px);
        padding-top: 72px;
    }
    .lp-hero__poster, .lp-hero__video { object-position: 78% 50%; }
    .lp-hero__shade {
        background:
            linear-gradient(0deg, rgba(47, 79, 156, 0.97) 0%, rgba(52, 85, 164, 0.9) 58%, rgba(56, 90, 171, 0.35) 100%);
    }
    .lp-hero__actions .lp-btn { flex: 1 1 100%; }

    .lp-price__actions { width: 100%; }
    .lp-price__actions .lp-btn { flex: 1 1 100%; }

    .lp-ledger__row { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 12px; }
    .lp-ledger__row.is-current { padding-left: 0; }

    .lp-contacts { padding-bottom: 104px; }    .lp-contacts__grid { grid-template-columns: minmax(0, 1fr); }
    .lp-nowrap { white-space: normal; }

    .lp-callbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 400;
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(251, 252, 254, 0.96);
        border-top: 1px solid var(--lp-line);
        transform: translateY(110%);
        transition: transform var(--lp-base) var(--lp-ease-out);
    }
    .lp-callbar.is-visible { transform: translateY(0); }
    .lp-callbar .lp-btn { min-height: 50px; padding: 0 12px; }
}

@media (max-width: 768px) {
    .lp-panels { flex-direction: column; height: auto; gap: 10px; }
    .lp-panel, .lp-panel.is-active { flex: none; }
    .lp-panel__btn { height: 168px; border-radius: 20px; cursor: default; }
    .lp-panel__img, .lp-panel.is-active .lp-panel__img { transform: none; }
    .lp-panel__btn::after, .lp-panel.is-active .lp-panel__btn::after {
        background:
            linear-gradient(0deg, rgba(31, 58, 122, 0.92) 0%, rgba(31, 58, 122, 0.35) 60%, rgba(31, 58, 122, 0.1) 100%);
    }
    .lp-panel__side, .lp-panel__timer { display: none; }
    .lp-panel__label {
        width: auto;
        right: 18px;
        bottom: 18px;
        font-size: 1.3125rem;
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp *, .lp-callbar, .lp-contacts * {
        animation-duration: 1ms !important;
        animation-delay: 0ms !important;
        transition-duration: 1ms !important;
    }
    .lp-hero__media { transform: none; }
    .lp-hero__video { display: none; }
    .lp-price__title .lp-word { opacity: 1; }
    .lp-panel__timer { display: none; }
    .lp-ledger__row { color: var(--lp-ink); padding-left: 0 !important; }
    .lp-ledger__row::after { display: none; }
}
