@charset "UTF-8";

/**
 * AKPP CRM — публичный лендинг СТО.
 *
 * Файл использует те же токены, что и админ-панель:
 * --bg, --card-bg, --text, --primary, --accent, --font,
 * --font-size, --radius, а также нейтральные поверхности и бордеры.
 * Значения цветов, шрифта и радиуса приходят из настроек сайта.
 */

:root {
    /* Нейтральная палитра админки (VS Code Dark+). */
    --admin-bg: #1e1e1e;
    --surface: #252526;
    --surface-2: #2d2d30;
    --surface-3: #333337;
    --border: #3c3c3c;
    --border-strong: #4b4b4b;
    --text-strong: #e7e7e7;
    --text-muted: #a9a9a9;
    --text-faint: #858585;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .35);

    /* Общие токены сайта и админки. Переопределяются из настроек. */
    --bg: #1e1e1e;
    --card-bg: #252526;
    --text: #e7e7e7;
    --primary: #3794ff;
    --accent: #63b3ed;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-size: 14px;
    --radius: 12px;

    --lp-max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--font-size);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 520px at 8% -8%, color-mix(in srgb, var(--primary) 11%, transparent), transparent 70%),
        radial-gradient(760px 520px at 96% 12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%);
    pointer-events: none;
}

a {
    color: inherit;
}

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

::selection {
    background: color-mix(in srgb, var(--primary) 35%, transparent);
}

/* ============================================================
   Каркас
   ============================================================ */

.lp-container {
    width: 100%;
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 0 22px;
}

.lp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
    max-width: var(--lp-max);
    margin: 0 auto;
    padding: 12px 22px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
}

.lp-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: calc(var(--radius) * .7);
    background: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    color: #06110a;
    font-size: 17px;
    font-weight: 900;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.lp-nav a {
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease;
}

.lp-nav a:hover {
    color: var(--primary);
}

.lp-header-phone {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.lp-header-phone:hover {
    color: var(--primary);
}

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

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: calc(var(--radius) * .8);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.lp-btn:hover {
    transform: translateY(-1px);
}

.lp-btn-primary {
    background: var(--primary);
    color: #06110a;
}

.lp-btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 84%, #ffffff);
}

.lp-btn-ghost {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text);
}

.lp-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lp-btn-outline {
    background: transparent;
    border-color: color-mix(in srgb, var(--primary) 55%, transparent);
    color: var(--primary);
}

.lp-btn-outline:hover {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.lp-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* ============================================================
   Служебное уведомление
   ============================================================ */

.lp-offline {
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
    background: color-mix(in srgb, var(--primary) 9%, transparent);
    color: var(--text);
    font-size: 13px;
    text-align: center;
}

.lp-offline .lp-container {
    padding-top: 9px;
    padding-bottom: 9px;
}

/* ============================================================
   Hero
   ============================================================ */

.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 0 44px;
}

.lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 54px;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lp-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

.lp-hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(36px, 5.4vw, 68px);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.lp-hero-sub {
    max-width: 590px;
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.7;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.lp-hero-actions .lp-btn {
    min-height: 50px;
    padding: 0 24px;
    font-size: 14.5px;
}

.lp-hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
}

.lp-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: min(430px, 92%);
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--primary) 11%, transparent), transparent 58%),
        linear-gradient(160deg, rgba(255, 255, 255, .035), transparent 60%);
    box-shadow: inset 0 0 90px rgba(0, 0, 0, .35);
}

.lp-orbit::before,
.lp-orbit::after {
    content: "";
    position: absolute;
    border: 1px dashed var(--border-strong);
    border-radius: 50%;
}

.lp-orbit::before {
    inset: 13%;
    animation: lp-spin 42s linear infinite;
}

.lp-orbit::after {
    inset: 27%;
    border-style: solid;
    opacity: .6;
}

@keyframes lp-spin {
    to {
        transform: rotate(360deg);
    }
}

.lp-gear {
    width: 42%;
    color: var(--primary);
    filter: drop-shadow(0 0 26px color-mix(in srgb, var(--primary) 34%, transparent));
}

.lp-hero-float {
    position: absolute;
    right: 0;
    bottom: 16%;
    max-width: 230px;
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--card-bg) 90%, transparent);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    backdrop-filter: blur(12px);
}

.lp-hero-float::before {
    content: "";
    display: block;
    width: 24px;
    height: 3px;
    margin-bottom: 9px;
    border-radius: 3px;
    background: var(--primary);
}

/* ============================================================
   Преимущества
   ============================================================ */

.lp-benefits {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.lp-benefits-title {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.lp-benefit {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.lp-benefit-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: calc(var(--radius) * .65);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.lp-benefit-icon svg {
    width: 18px;
    height: 18px;
}

.lp-benefit h3 {
    margin: 1px 0 4px;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.35;
}

.lp-benefit p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   Секции
   ============================================================ */

.lp-section {
    padding: 76px 0;
    border-top: 1px solid var(--border);
    scroll-margin-top: 90px;
}

.lp-section-head {
    max-width: 720px;
    margin-bottom: 34px;
}

.lp-section-title {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.lp-section-sub {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================================
   Услуги
   ============================================================ */

.lp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lp-service {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lp-service:hover {
    border-color: color-mix(in srgb, var(--primary) 38%, transparent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    transform: translateY(-2px);
}

.lp-service h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;
}

.lp-service-price {
    margin: 12px 0 0;
    color: var(--primary);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.lp-service p {
    margin: 10px 0 18px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.lp-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.lp-service-link:hover {
    color: var(--primary);
}

.lp-service-link svg {
    width: 14px;
    height: 14px;
}

.lp-note {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================================
   Как мы работаем
   ============================================================ */

.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    counter-reset: lp-step;
}

.lp-step {
    position: relative;
    padding: 22px;
    border: 1px solid var(--border);
    border-top: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.lp-step-num {
    display: block;
    margin-bottom: 28px;
    color: color-mix(in srgb, var(--primary) 82%, #ffffff);
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
}

.lp-step h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 750;
}

.lp-step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ============================================================
   Отзывы
   ============================================================ */

.lp-reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lp-review {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.lp-stars {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: .12em;
}

.lp-review blockquote {
    margin: 14px 0 20px;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.7;
}

.lp-review-author {
    margin-top: auto;
}

.lp-review-author strong {
    display: block;
    font-size: 13px;
}

.lp-review-author span {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11.5px;
}

/* ============================================================
   FAQ
   ============================================================ */

.lp-faq {
    max-width: 860px;
}

.lp-faq-item {
    border-bottom: 1px solid var(--border);
}

.lp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

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

.lp-faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.lp-faq-item[open] summary::after {
    content: "−";
}

.lp-faq-answer {
    padding: 0 34px 20px 0;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* ============================================================
   Контакты и карта
   ============================================================ */

.lp-contacts-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 22px;
    align-items: stretch;
}

.lp-contact-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.lp-contact-list {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.lp-contact-row {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.lp-contact-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: calc(var(--radius) * .7);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
}

.lp-contact-icon svg {
    width: 18px;
    height: 18px;
}

.lp-contact-value {
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.lp-contact-value a {
    color: inherit;
    text-decoration: none;
}

.lp-contact-value a:hover {
    color: var(--primary);
}

.lp-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.lp-map {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    box-shadow: var(--shadow-card);
}

.lp-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    filter: saturate(.8) contrast(1.02);
}

.lp-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    text-align: center;
    background:
        linear-gradient(color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 76%, transparent)),
        repeating-linear-gradient(0deg, transparent 0 34px, var(--border) 34px 35px),
        repeating-linear-gradient(90deg, transparent 0 34px, var(--border) 34px 35px);
}

.lp-map-pin {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50% 50% 50% 8px;
    background: var(--primary);
    box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 28%, transparent);
    color: #06110a;
    transform: rotate(-45deg);
}

.lp-map-pin svg {
    width: 24px;
    height: 24px;
    transform: rotate(45deg);
}

.lp-map-address {
    margin: 0;
    max-width: 300px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

/* ============================================================
   Подвал
   ============================================================ */

.lp-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0 34px;
}

.lp-footer h3 {
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: 750;
}

.lp-footer p {
    margin: 6px 0;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.lp-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.lp-footer a:hover {
    color: var(--primary);
}

.lp-footer-nav {
    display: grid;
    gap: 8px;
    align-content: start;
}

.lp-footer-nav a,
.lp-footer-legal a {
    font-size: 12.5px;
}

.lp-footer-contacts {
    display: grid;
    gap: 7px;
    align-content: start;
}

.lp-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 26px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11.5px;
}

.lp-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================================
   Мобильная кнопка «Позвонить»
   ============================================================ */

.lp-mobile-call {
    display: none;
}

@media (max-width: 760px) {
    body.has-mobile-call {
        padding-bottom: 82px;
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .lp-mobile-call {
        position: fixed;
        right: 12px;
        bottom: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px;
        z-index: 80;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 54px;
        padding: 0 18px;
        border: 1px solid color-mix(in srgb, var(--primary) 72%, #ffffff);
        border-radius: calc(var(--radius) * .85);
        background: var(--primary);
        box-shadow: 0 12px 34px rgba(0, 0, 0, .42);
        color: #06110a;
        font-size: 14.5px;
        font-weight: 800;
        line-height: 1.2;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .lp-mobile-call:active {
        transform: translateY(1px);
    }

    .lp-mobile-call svg {
        width: 19px;
        height: 19px;
        flex: 0 0 auto;
    }

    .lp-mobile-call-phone {
        opacity: .72;
        font-weight: 700;
    }
}

/* ============================================================
   Адаптивность
   ============================================================ */

@media (max-width: 1020px) {
    .lp-nav {
        display: none;
    }

    .lp-header-actions {
        margin-left: auto;
    }

    .lp-hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .lp-hero-visual {
        min-height: 320px;
    }

    .lp-orbit {
        width: min(340px, 76vw);
    }

    .lp-hero-float {
        right: 6%;
        bottom: 6%;
    }

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

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

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

    .lp-reviews {
        grid-template-columns: 1fr;
    }

    .lp-contacts-grid {
        grid-template-columns: 1fr;
    }

    .lp-map,
    .lp-map iframe {
        min-height: 360px;
    }

    .lp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-footer-grid > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .lp-header-inner {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 11px 18px;
    }

    .lp-header-phone {
        margin-left: auto;
        font-size: 13px;
    }

    .lp-header .lp-btn {
        min-height: 38px;
        padding: 0 13px;
        font-size: 12.5px;
    }

    .lp-container {
        padding: 0 18px;
    }

    .lp-hero {
        padding: 46px 0 34px;
    }

    .lp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-hero-actions .lp-btn {
        width: 100%;
    }

    .lp-hero-visual {
        min-height: 280px;
    }

    .lp-hero-float {
        right: 0;
        bottom: 0;
        max-width: 190px;
        padding: 11px 13px;
        font-size: 12px;
    }

    .lp-benefits-grid,
    .lp-services-grid,
    .lp-steps {
        grid-template-columns: 1fr;
    }

    .lp-section {
        padding: 56px 0;
    }

    .lp-service {
        min-height: 0;
    }

    .lp-step {
        padding: 18px;
    }

    .lp-step-num {
        margin-bottom: 14px;
    }

    .lp-map,
    .lp-map iframe {
        min-height: 320px;
    }

    .lp-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 34px;
    }

    .lp-footer-grid > :first-child {
        grid-column: auto;
    }

    .lp-footer-bottom {
        padding-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .lp-orbit::before {
        animation: none;
    }

    .lp-btn {
        transition: none;
    }
}
/* ---------- Навигация шапки: магазин, профиль, CTA CRM ---------- */

.lp-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: 0;
    min-width: 0;
}

.lp-header-actions > * { flex: 0 0 auto; }

.lp-header-actions .site-profile-btn,
.lp-header-actions .site-crm-cta,
.lp-header-actions .lp-btn {
    min-height: 38px;
}

.lp-header-actions .lp-btn {
    padding: 0 14px;
    font-size: 12.5px;
}

.lp-header-actions .lp-cart-link { gap: 7px; }

.lp-footer-crm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    margin: 26px 0 8px;
    background: linear-gradient(120deg, rgba(197, 134, 192, 0.14), rgba(55, 148, 255, 0.12));
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.2);
}

.lp-footer-crm-text strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.lp-footer-crm-text span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .lp-header-actions {
        order: 5;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .lp-footer-crm {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   ШАПКА v2 — только flexbox, два логических блока.
   Левая часть: логотип + якорные ссылки разделов.
   Правая часть: магазин, CRM, корзина, профиль, CTA, телефон,
   кнопка записи и бургер для мобильных.
   ============================================================ */

.lp-header .lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 12px 16px;
    flex-wrap: nowrap;
    font-size: 13px;
    line-height: 1.2;
}

.lp-header .lp-header-left,
.lp-header .lp-header-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.lp-header .lp-header-left {
    gap: 18px;
    flex: 1 1 auto;
}

.lp-header .lp-header-right {
    gap: 8px;
    flex: 0 1 auto;
    justify-content: flex-end;
}

.lp-header .lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
}

.lp-header .lp-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: calc(var(--radius) * .7);
    background: var(--primary);
    color: #06110a;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
}

.lp-header .lp-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.lp-header .lp-nav a {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: color .18s ease;
}

.lp-header .lp-nav a:hover { color: var(--primary); }

.lp-header .lp-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    flex-wrap: nowrap;
    min-width: 0;
}

.lp-header .lp-header-actions > * { flex: 0 0 auto; }

.lp-header .lp-header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.lp-header .lp-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.lp-header .lp-header-link:hover {
    color: var(--text);
    background: var(--surface-2);
}

.lp-header .lp-cart-link { gap: 7px; }

.lp-header .site-cart-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.lp-header .site-cart-badge[data-empty="1"] { display: none; }

/* Профиль: кнопка в общей линии, меню — только сам popover. */
.lp-header .lp-profile { position: relative; display: inline-flex; }

.lp-header .lp-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.lp-header .lp-profile-btn:hover,
.lp-header .lp-profile.open .lp-profile-btn {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border);
}

.lp-header .lp-profile-btn svg { flex: 0 0 auto; }

/* По требованию в шапке — иконка профиля без текстовой подписи. */
.lp-header .lp-profile-label { display: none; }

.lp-header .lp-profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: auto;
    display: none;
    min-width: 224px;
    max-width: calc(100vw - 24px);
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.lp-header .lp-profile.open .lp-profile-menu { display: block; }

.lp-header .lp-profile-menu .site-profile-name {
    padding: 8px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-header .lp-profile-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    text-decoration: none;
}

.lp-header .lp-profile-menu a:hover {
    background: var(--surface-3);
    color: var(--text);
}

.lp-header .lp-profile-menu a.danger { color: #f48771; }

.lp-header .lp-profile-menu a.danger:hover {
    background: rgba(244, 135, 113, .14);
    color: #f48771;
}

.lp-header .lp-profile-sep {
    height: 1px;
    margin: 4px 6px;
    background: var(--border);
}

.lp-header .lp-header-crm {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(197, 134, 192, .55);
    border-radius: 8px;
    background: rgba(197, 134, 192, .14);
    color: #e9d3e7;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.lp-header .lp-header-crm:hover {
    background: rgba(197, 134, 192, .26);
    border-color: rgba(197, 134, 192, .85);
    color: #ffffff;
}

.lp-header .lp-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.lp-header .lp-header-phone:hover { color: var(--primary); }
.lp-header .lp-header-phone svg { flex: 0 0 auto; }

.lp-header .lp-header-book {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
    line-height: 1.2;
}

/* Бургер — только для узких экранов. */
.lp-header .lp-burger {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.lp-header .lp-burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .18s ease, opacity .18s ease;
}

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

/* Мобильное меню: обычный поток, без absolute и наложений. */
.lp-mobile-menu {
    display: none;
    padding: 10px 22px 18px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.lp-mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
}

.lp-mobile-nav a:hover { background: var(--surface-2); }
.lp-mobile-nav a.danger { color: #f48771; }

.lp-mobile-sep {
    height: 1px;
    margin: 6px 10px;
    background: var(--border);
}

.lp-mobile-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.lp-mobile-contact .lp-header-phone { font-size: 14px; }
.lp-mobile-contact .lp-btn { min-height: 42px; }

/* До 1360px телефон показываем компактной иконкой с подсказкой. */
@media (max-width: 1359px) {
    .lp-header .lp-header-contact .lp-header-phone span { display: none; }
}

/* Уже 1280px: левые якорные ссылки уходят в бургер, правый блок остаётся. */
@media (max-width: 1279px) {
    .lp-header .lp-header-inner { padding: 12px 16px; gap: 16px; }
    .lp-header .lp-nav { display: none; }
    .lp-header .lp-burger { display: inline-flex; }
}

@media (max-width: 1159px) {
    .lp-header .lp-header-inner { padding: 12px; gap: 12px; }
    .lp-header .lp-header-actions { gap: 4px; }
}

/* Планшет: в шапке остаются телефон, запись и бургер. */
@media (max-width: 1023px) {
    .lp-header .lp-header-actions { display: none; }
    .lp-header .lp-header-right { gap: 12px; }
}

/* Мобильные: логотип и бургер, все пункты — в меню. */
@media (max-width: 768px) {
    .lp-header .lp-header-inner {
        min-height: 64px;
        padding: 10px 16px;
        gap: 12px;
    }

    .lp-header .lp-header-contact { display: none; }

    .lp-mobile-menu { padding: 10px 16px 16px; }
}
