/* ===========================================================================
   Лендинг «Имплантация под ключ» — дополнение к main.css.
   Все классы с префиксом .lp- , стили сайта не затрагиваются.
   Подключается только из main.implant.php.
   =========================================================================== */

:root {
    --lp-ink: #113545;
    --lp-ink-2: #0C2735;
    --lp-coral: #FF5964;
    --lp-blue: #3BAEE1;
    --lp-gray: #6E8089;
    --lp-mute: #919FA6;
    --lp-bg: #F3FAFC;
}

/* сайт на узких экранах центрует текст в секциях — внутри лендинга выравниваем влево */
.lp-hero__text,
.lp-head,
.lp-card,
.lp-steps__list li,
.lp-faq__list { text-align: left; }

/* --- Общая шапка секции ---------------------------------------------------- */
.lp-head { max-width: 760px; margin: 0 0 34px; }
.lp-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.lp-head h2.lp-head__title {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--lp-ink);
}

.lp-head__sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--lp-gray);
}

/* --- Кнопка ---------------------------------------------------------------- */
.lp-btn {
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 17px 36px !important;
    border-radius: 30px !important;
    white-space: nowrap;
}

/* ===========================================================================
   Блок 1. Герой
   =========================================================================== */
.lp-hero {
    position: relative;
    padding: 58px 0 54px;
    background:
        radial-gradient(900px 500px at 82% 18%, rgba(59, 174, 225, .28) 0%, rgba(59, 174, 225, 0) 62%),
        linear-gradient(135deg, #0C2735 0%, #113545 52%, #16485C 100%);
    color: #fff;
    overflow: hidden;
}

.lp-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.lp-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--lp-blue);
}

/* .inside h1 в main.css перебивает цвет и размер — поднимаем специфичность */
.lp-hero h1.lp-hero__title {
    margin: 0 0 16px;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.025em;
    color: #fff;
}

.lp-hero__subtitle {
    max-width: 580px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, .86);
}

.lp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.lp-chips li {
    padding: 9px 16px 9px 34px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background: rgba(255, 255, 255, .07);
    font-size: 14px;
    line-height: 1.2;
    color: #fff;
}

.lp-chips li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 11px;
    height: 6px;
    margin-top: -4px;
    border-left: 2px solid var(--lp-blue);
    border-bottom: 2px solid var(--lp-blue);
    transform: rotate(-45deg);
}

.lp-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 26px;
    margin-bottom: 18px;
}

.lp-hero .lp-btn,
.lp-steps .lp-btn,
.lp-final .lp-btn {
    background: var(--lp-coral) !important;
    border-color: var(--lp-coral) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(255, 89, 100, .30);
}

.lp-hero__phone,
.lp-final__phone {
    font-size: 22px;
    font-weight: 500;
    white-space: nowrap;
}

.lp-hero__phone,
.lp-hero__phone:hover,
.lp-hero__phone:focus { color: #fff; text-decoration: none; }

.lp-hero__note {
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .62);
}

.lp-hero__note b { color: #fff; font-weight: 500; }

.lp-hero__media { text-align: center; }

.lp-hero__media img {
    display: block;
    width: 100%;
    max-width: 410px;
    height: auto;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

/* --- Полоса цифр ----------------------------------------------------------- */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 46px;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.lp-stats__item { text-align: left; }

.lp-stats__item b {
    display: block;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: #fff;
}

.lp-stats__item span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .62);
}

/* ===========================================================================
   Блок 2. Имплант или мост
   =========================================================================== */
.lp-compare {
    padding: 64px 0;
    background: var(--lp-bg);
}

.lp-compare__grid {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 40px;
    align-items: start;
}

.lp-compare__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(17, 53, 69, .16);
}

.lp-compare__cards {
    display: grid;
    gap: 20px;
}

.lp-card {
    padding: 26px 28px;
    border-radius: 18px;
    background: #fff;
}

.lp-card__title {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-card ul { margin: 0; padding: 0; list-style: none; }

.lp-card li {
    position: relative;
    padding: 0 0 0 30px;
    margin-bottom: 10px;
    font-size: 15.5px;
    line-height: 1.5;
}

.lp-card li:last-child { margin-bottom: 0; }

.lp-card--minus {
    border: 1px solid rgba(17, 53, 69, .10);
    color: var(--lp-gray);
}

.lp-card--minus .lp-card__title { color: var(--lp-gray); }

.lp-card--minus li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 13px;
    height: 2px;
    background: #C3CFD5;
}

.lp-card--plus {
    border: 1px solid rgba(59, 174, 225, .35);
    box-shadow: 0 16px 40px rgba(17, 53, 69, .10);
    color: var(--lp-ink);
}

.lp-card--plus li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 12px;
    height: 7px;
    border-left: 2.5px solid var(--lp-blue);
    border-bottom: 2.5px solid var(--lp-blue);
    transform: rotate(-45deg);
}

/* ===========================================================================
   Блок 3. Этапы
   =========================================================================== */
.lp-steps { padding: 64px 0; }

.lp-steps__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 42px;
}

.lp-steps__photos figure { margin: 0; }

.lp-steps__photos img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(17, 53, 69, .14);
}

.lp-steps__photos figcaption {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--lp-gray);
    text-align: center;
}

.lp-steps__list {
    counter-reset: lp-step;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-steps__list li {
    counter-increment: lp-step;
    position: relative;
    padding-left: 58px;
}

.lp-steps__list li::before {
    content: counter(lp-step);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #EAF7FD;
    color: var(--lp-blue);
    font-size: 19px;
    font-weight: 700;
}

.lp-steps__list b {
    display: block;
    margin-bottom: 5px;
    padding-top: 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--lp-ink);
}

.lp-steps__list span {
    display: block;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--lp-gray);
}

.lp-steps__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding: 26px 30px;
    border: 1px solid rgba(17, 53, 69, .10);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 53, 69, .08);
}

.lp-steps__cta > div {
    flex: 1 1 340px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--lp-gray);
    text-align: left;
}

.lp-steps__cta b { color: var(--lp-ink); }

/* ===========================================================================
   Блок 4. Отзывы
   =========================================================================== */
.lp-reviews { padding: 56px 0 10px; }

.lp-reviews__box {
    position: relative;
    max-width: 760px;
    height: 760px;
    margin: 0 auto;
    overflow: hidden;
}

.lp-reviews__box iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-sizing: border-box;
}

.lp-reviews__link {
    position: absolute;
    left: 0;
    bottom: 8px;
    display: block;
    width: 100%;
    max-height: 14px;
    padding: 0 16px;
    overflow: hidden;
    color: #b3b3b3;
    font-size: 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================================================================
   Блок 5. FAQ, финальный CTA, юрстрока
   =========================================================================== */
.lp-faq {
    padding: 60px 0;
    background: var(--lp-bg);
}

.lp-faq__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: start;
}

.lp-faq__list details {
    margin-bottom: 12px;
    border: 1px solid rgba(17, 53, 69, .10);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.lp-faq__list summary {
    position: relative;
    display: block;
    padding: 18px 56px 18px 22px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--lp-ink);
    cursor: pointer;
    list-style: none;
}

.lp-faq__list summary::-webkit-details-marker { display: none; }

.lp-faq__list summary::after,
.lp-faq__list summary::before {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    background: var(--lp-blue);
    transition: transform .2s ease;
}

.lp-faq__list summary::before { width: 14px; height: 2px; margin-top: -1px; }
.lp-faq__list summary::after { width: 2px; height: 14px; margin: -7px 6px 0 0; }

.lp-faq__list details[open] summary::after { transform: scaleY(0); }

.lp-faq__list details > div {
    padding: 0 22px 20px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--lp-gray);
}

.lp-faq__media { text-align: center; }

.lp-faq__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(17, 53, 69, .16);
}

.lp-faq__media-cap {
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--lp-gray);
}

.lp-final {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding: 34px 38px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0C2735 0%, #113545 60%, #16485C 100%);
    box-shadow: 0 22px 50px rgba(17, 53, 69, .22);
}

.lp-final__text { flex: 1 1 380px; text-align: left; }

.lp-final__title {
    margin-bottom: 8px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.lp-final__sub {
    font-size: 15.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .72);
}

.lp-final__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.lp-final__phone,
.lp-final__phone:hover,
.lp-final__phone:focus { color: #fff; text-decoration: none; }

.lp-legal {
    max-width: 900px;
    margin: 30px auto 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--lp-mute);
    text-align: center;
}

.lp-legal a { color: var(--lp-blue); text-decoration: underline; }

/* --- Липкая кнопка (только мобильные) -------------------------------------- */
.lp-sticky { display: none; }

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

@media (max-width: 991px) {
    .lp-hero { padding: 40px 0; }
    .lp-hero__grid { grid-template-columns: 1fr; gap: 28px; }
    .lp-hero__media { order: -1; }
    .lp-hero__media img { max-width: 300px; }
    .lp-hero h1.lp-hero__title { font-size: 36px; }
    .lp-hero__subtitle { font-size: 16.5px; }
    .lp-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; margin-top: 34px; }

    .lp-head h2.lp-head__title { font-size: 29px; }
    .lp-head__sub { font-size: 16px; }

    .lp-compare { padding: 46px 0; }
    .lp-compare__grid { grid-template-columns: 1fr; gap: 26px; }
    .lp-compare__media { max-width: 420px; margin: 0 auto; }

    .lp-steps { padding: 46px 0; }
    .lp-steps__list { grid-template-columns: 1fr; gap: 20px; }

    .lp-faq { padding: 46px 0; }
    .lp-faq__grid { grid-template-columns: 1fr; gap: 28px; }
    .lp-faq__media { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 767px) {
    body { padding-bottom: 72px; }

    /* шапка сайта на телефоне высокая — на первом экране должен быть оффер, а не фото */
    .lp-hero__media { order: 0; margin-top: 4px; }
    .lp-hero__grid { gap: 22px; }

    .lp-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: flex;
        gap: 10px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -6px 20px rgba(17, 53, 69, .16);
    }

    .lp-sticky a {
        flex: 1 1 50%;
        padding: 14px 8px;
        border-radius: 26px;
        font-size: 15px;
        font-weight: 500;
        line-height: 1;
        text-align: center;
        text-decoration: none;
    }

    .lp-sticky__call {
        border: 1.5px solid var(--lp-ink);
        color: var(--lp-ink);
    }

    .lp-sticky__btn {
        background: var(--lp-coral);
        color: #fff;
    }

    .lp-sticky a:hover,
    .lp-sticky a:focus { text-decoration: none; }
    .lp-sticky__call:hover, .lp-sticky__call:focus { color: var(--lp-ink); }
    .lp-sticky__btn:hover, .lp-sticky__btn:focus { color: #fff; }
}

@media (max-width: 575px) {
    .lp-hero { padding: 32px 0 36px; }
    .lp-hero h1.lp-hero__title { font-size: 30px; }
    .lp-hero__subtitle { font-size: 15.5px; margin-bottom: 20px; }
    .lp-hero__media img { max-width: 240px; }
    .lp-hero__cta { gap: 14px; }
    .lp-hero .lp-btn { width: 100%; }
    .lp-hero__phone { font-size: 20px; }
    .lp-stats { grid-template-columns: 1fr 1fr; }
    .lp-stats__item b { font-size: 29px; }
    .lp-stats__item span { font-size: 13px; }

    .lp-head { margin-bottom: 26px; }
    .lp-head h2.lp-head__title { font-size: 25px; }
    .lp-head__sub { font-size: 15px; }

    .lp-card { padding: 22px 20px; }
    .lp-card li { font-size: 15px; }

    .lp-steps__photos { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
    .lp-steps__photos figure { max-width: 340px; margin: 0 auto; }
    .lp-steps__cta { padding: 22px 20px; }
    .lp-steps__cta .lp-btn { width: 100%; }

    .lp-reviews { padding: 40px 0 6px; }
    .lp-reviews__box { height: 640px; }

    .lp-faq__list summary { font-size: 16px; padding: 16px 48px 16px 18px; }
    .lp-faq__list details > div { padding: 0 18px 18px; font-size: 15px; }

    .lp-final { padding: 26px 20px; }
    .lp-final__title { font-size: 22px; }
    .lp-final__actions { width: 100%; }
    .lp-final .lp-btn { width: 100%; }
}
