/* ============================================================
   fix.css — Стилі для блогу. Підключається після main.css.
   1rem = 10px (html font-size: 10px).
   ============================================================ */

:root {
    --lp-bg: #faf9f6;
    --lp-card-bg: #fff;
    --lp-soft: #f1f5ff;
    --lp-text: #3b4767;
    --lp-text-muted: #6d7999;
    --lp-text-faint: #97a0b8;
    --lp-accent: #d5cdb9;
    --lp-accent-dark: #b6ad95;
    --lp-blue: #4c639d;
    --lp-blue-soft: #92a1cd;
    --lp-border: #e6e8f0;
    --lp-border-strong: #d6d9e3;
    --lp-share-viber: #7360f2;
    --lp-share-whatsapp: #25d366;
    --lp-share-telegram: #229ed9;
    --lp-share-facebook: #1877f2;
}

/* ===== БАЗА ===== */

.single-post-wrap,
.lp-blog-index {
    padding-top: 14rem;
    padding-bottom: 10rem;
    background: var(--lp-bg);
}

@media (max-width: 991px) {
    .single-post-wrap,
    .lp-blog-index { padding-top: 11rem; padding-bottom: 6rem; }
}

@media (max-width: 575px) {
    .single-post-wrap,
    .lp-blog-index { padding-top: 9rem; }
}

/* ===== HEADER MENU active link ===== */
/* Перебиваємо main.css правило .current-menu-item a { color: #d5cdb9 } */
.header__menu .current-menu-item > a,
.header__menu .current-menu-item,
.header__menu .current-menu-parent > a,
.header__menu .current-menu-parent {
    color: var(--lp-text) !important;
}

/* Перебиваємо main.css ::before, який малює бежеву лінію через .hover-underline */
.header__menu .current-menu-item > a::before {
    background: var(--lp-text) !important;
}

/* Власне підкреслення для активного пункту меню (без беж­евого .current-menu-item) */
.header__menu .current-menu-item > a {
    position: relative;
}

.header__menu .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.6rem;
    height: 2px;
    background: var(--lp-text);
    border-radius: 1px;
}

/* Logo має бути видимий завжди, навіть після скролу */
.header__logo img,
.scrolled .header__logo img,
.scrolled .header__logo img:nth-child(1),
.scrolled .header__logo img:nth-child(2) {
    opacity: 1 !important;
}

/* ===== АНІМАЦІЇ FADE-UP — ВИМКНЕНО ===== */
/* Залишаємо клас, але без анімації — щоб не довелося чистити шаблони. */
.lp-fade,
.lp-fade.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
}

/* ===== Breadcrumbs ===== */

.lp-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    font-size: 1.4rem;
    color: var(--lp-text-muted);
    margin-bottom: 2.4rem;
    line-height: 1.4;
}

.lp-breadcrumbs--center { justify-content: center; }

.lp-breadcrumbs a {
    color: var(--lp-text-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.lp-breadcrumbs a:hover { color: var(--lp-blue); text-decoration: none; }

.lp-breadcrumbs__sep { color: var(--lp-text-faint); font-weight: 300; }

.lp-breadcrumbs__current {
    color: var(--lp-text);
    font-weight: 500;
    max-width: 60ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575px) {
    .lp-breadcrumbs { font-size: 1.3rem; }
    .lp-breadcrumbs__current { max-width: 22ch; }
}

/* ===== "Назад" pill ===== */

.lp-back {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: .8rem 2rem .8rem .8rem;
    background: #fff;
    border: 1px solid var(--lp-border-strong);
    border-radius: 999px;
    color: var(--lp-text);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
    margin-bottom: 2rem;
    line-height: 1;
}

.lp-back:hover,
.lp-back:focus {
    background: var(--lp-text);
    color: #fff;
    border-color: var(--lp-text);
    transform: translateX(-3px);
    text-decoration: none;
}

.lp-back__icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-accent);
    color: #fff;
    flex-shrink: 0;
    transition: background .25s ease, color .25s ease;
}

.lp-back__icon svg { width: 1.2rem; height: 1.2rem; }

.lp-back:hover .lp-back__icon,
.lp-back:focus .lp-back__icon {
    background: #fff;
    color: var(--lp-text);
}

/* ===== Мета зверху статті ===== */

.lp-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem 1.6rem;
    margin-bottom: 1.6rem;
    font-size: 1.3rem;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lp-post-meta__tag {
    display: inline-block;
    padding: .6rem 1.4rem;
    background: var(--lp-accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .08em;
    text-decoration: none;
    transition: background .2s ease;
}

.lp-post-meta__tag:hover { background: var(--lp-accent-dark); color: #fff; text-decoration: none; }

.lp-post-meta__dot {
    display: inline-block;
    width: .4rem; height: .4rem;
    border-radius: 50%;
    background: var(--lp-text-faint);
}

/* ===== Заголовок статті ===== */

.lp-post-title {
    font-size: 4.8rem !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: var(--lp-text);
    margin: 0 0 4rem !important;
    letter-spacing: -.01em;
    max-width: 90rem;
}

@media (max-width: 1199px) { .lp-post-title { font-size: 4rem !important; } }
@media (max-width: 767px)  { .lp-post-title { font-size: 3.2rem !important; margin-bottom: 3rem !important; } }
@media (max-width: 575px)  { .lp-post-title { font-size: 2.6rem !important; } }

/* ===== Cover ===== */

.lp-post-cover {
    display: block;
    border-radius: 2.4rem;
    overflow: hidden;
    margin: 0 0 4rem;
    aspect-ratio: 16/9;
    background: var(--lp-card-bg);
    position: relative;
}

.lp-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 575px) {
    .lp-post-cover { border-radius: 1.6rem; margin-bottom: 3rem; }
}

/* ===== Grid контент + сайдбар ===== */

.lp-post-grid {
    --bs-gutter-x: 6rem;
}

@media (max-width: 1199px) { .lp-post-grid { --bs-gutter-x: 4rem; } }

/* На сторінці одиночної статті — overflow: visible на body та html,
   щоб запрацював position: sticky сайдбара. */
body.single-post {
    overflow: visible !important;
}

html:has(body.single-post) {
    overflow: visible !important;
}

/* ===== .text-content типографіка ===== */

.text-content {
    font-size: 1.8rem;
    line-height: 1.75;
    color: var(--lp-text);
    word-wrap: break-word;
}

.text-content > * + * { margin-top: 2rem; }
.text-content > * + h2 { margin-top: 5rem; }
.text-content > * + h3 { margin-top: 3.6rem; }
.text-content > h2 + *, .text-content > h3 + * { margin-top: 1.6rem; }
.text-content > *:first-child { margin-top: 0; }
.text-content > *:last-child { margin-bottom: 0; }

.text-content p {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.75;
    color: var(--lp-text);
}

.text-content p.lead {
    font-size: 2.2rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--lp-text);
    padding: .4rem 0 .4rem 2.4rem;
    border-left: 4px solid var(--lp-accent);
}

@media (max-width: 575px) {
    .text-content, .text-content p { font-size: 1.6rem; line-height: 1.7; }
    .text-content p.lead { font-size: 1.8rem; padding-left: 1.6rem; }
}

.text-content h2 {
    font-size: 3rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: var(--lp-text);
    position: relative;
    padding-top: 1.2rem;
}

.text-content h2::before {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    background: var(--lp-accent);
    border-radius: 2px;
    margin-bottom: 1.6rem;
}

@media (max-width: 575px) { .text-content h2 { font-size: 2.4rem !important; } }

.text-content h3 {
    font-size: 2.2rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--lp-text);
}

@media (max-width: 575px) { .text-content h3 { font-size: 1.9rem !important; } }

.text-content a {
    color: var(--lp-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.text-content a:hover {
    color: var(--lp-text);
    text-decoration-color: var(--lp-accent);
}

.text-content ul, .text-content ol { padding-left: 2.4rem; margin: 0; }

.text-content ul li, .text-content ol li {
    margin-bottom: 1rem;
    line-height: 1.7;
    padding-left: .4rem;
}

.text-content ul li::marker { color: var(--lp-accent); font-size: 1.4em; }
.text-content ol li::marker { color: var(--lp-accent-dark); font-weight: 700; }

.text-content blockquote {
    margin: 0;
    padding: 2.4rem 3rem;
    background: var(--lp-soft);
    border-left: 4px solid var(--lp-accent);
    border-radius: 0 1.6rem 1.6rem 0;
    font-size: 2rem;
    font-style: italic;
    color: var(--lp-text);
    line-height: 1.55;
}

.text-content strong, .text-content b { color: var(--lp-text); font-weight: 700; }
.text-content em, .text-content i { font-style: italic; }

.text-content img, .text-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 1.6rem;
    display: block;
}

.text-content figure { margin: 0; }
.text-content figcaption {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: var(--lp-text-muted);
    text-align: center;
    font-style: italic;
}

.text-content hr {
    border: none; height: 1px;
    background: var(--lp-border);
    margin: 4rem 0;
}

/* ===== Сайдбар ===== */

.lp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    will-change: transform, top;
}

.lp-sidebar.is-sticky-mode {
    position: sticky;
    align-self: flex-start;
    top: 12rem;
}

@media (max-width: 991px) {
    .lp-sidebar {
        position: static !important;
        margin-top: 5rem;
        gap: 2rem;
        top: auto !important;
    }
}

.lp-card {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 2rem;
    padding: 2.8rem;
}

@media (max-width: 575px) { .lp-card { padding: 2.4rem; border-radius: 1.6rem; } }

.lp-card__label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--lp-text-muted);
    margin: 0 0 2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--lp-border);
}

.lp-card--cta {
    background: var(--lp-text);
    border: none;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.lp-card--cta::after {
    content: "";
    position: absolute;
    right: -4rem; bottom: -4rem;
    width: 14rem; height: 14rem;
    border-radius: 50%;
    background: rgba(213,205,185,.14);
    pointer-events: none;
}

.lp-card--cta .lp-card__label {
    color: rgba(255,255,255,.55);
    border-bottom-color: rgba(255,255,255,.15);
}

.lp-card__heading {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 1.2rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.lp-card__text {
    font-size: 1.4rem;
    line-height: 1.55;
    margin: 0 0 2rem;
    color: rgba(255,255,255,.82);
    position: relative;
    z-index: 1;
}

.lp-card__phone {
    display: inline-block;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.6rem;
    letter-spacing: .01em;
    position: relative;
    z-index: 1;
}

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

.lp-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.4rem 2.4rem;
    border: none; cursor: pointer;
    border-radius: 999px;
    background: var(--lp-accent);
    color: var(--lp-text);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: background .2s ease, transform .2s ease, color .2s ease;
    width: 100%;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.lp-card__btn:hover {
    background: #fff;
    color: var(--lp-text);
    transform: translateY(-1px);
    text-decoration: none;
}

.lp-card__btn svg { width: 1.4rem; height: 1.4rem; }

/* ===== Сайдбар: список останніх статей ===== */

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

.lp-list__item + .lp-list__item {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--lp-border);
}

.lp-list__link {
    display: block;
    text-decoration: none;
    color: var(--lp-text);
    transition: color .2s ease;
}

.lp-list__link:hover { color: var(--lp-blue); text-decoration: none; }

.lp-list__title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-list__date {
    display: block;
    font-size: 1.1rem;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .6rem;
}

/* ===== Категорії-таги ===== */

.lp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    list-style: none; padding: 0; margin: 0;
}

.lp-tags li { margin: 0; }

.lp-tags a {
    display: inline-block;
    padding: .7rem 1.4rem;
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--lp-text);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .03em;
    transition: all .2s ease;
}

.lp-tags a:hover {
    background: var(--lp-blue);
    border-color: var(--lp-blue);
    color: #fff;
    text-decoration: none;
}

/* ===== SOCIAL SHARE BUTTONS ===== */

.lp-share {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 2rem;
    padding: 2.4rem 2.8rem;
}

.lp-share__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .8rem;
    margin: 0; padding: 0;
    list-style: none;
}

.lp-share__list > li { margin: 0; flex: 1 1 calc(50% - .4rem); }

.lp-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--lp-text);
    background: var(--lp-bg);
    border: 1px solid var(--lp-border);
    transition: all .2s ease;
    width: 100%;
    min-width: 0;
}

.lp-share__btn svg {
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
    transition: color .2s ease, fill .2s ease;
}

.lp-share__btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: transparent;
}

.lp-share__btn--viber:hover    { background: var(--lp-share-viber); }
.lp-share__btn--whatsapp:hover { background: var(--lp-share-whatsapp); }
.lp-share__btn--telegram:hover { background: var(--lp-share-telegram); }
.lp-share__btn--facebook:hover { background: var(--lp-share-facebook); }

.lp-share__btn--viber:hover svg    { color: #fff; }
.lp-share__btn--whatsapp:hover svg { color: #fff; }
.lp-share__btn--telegram:hover svg { color: #fff; }
.lp-share__btn--facebook:hover svg { color: #fff; }

.lp-share__btn--viber svg    { color: var(--lp-share-viber); }
.lp-share__btn--whatsapp svg { color: var(--lp-share-whatsapp); }
.lp-share__btn--telegram svg { color: var(--lp-share-telegram); }
.lp-share__btn--facebook svg { color: var(--lp-share-facebook); }

/* ===== AUTHOR BIO ===== */

.lp-author {
    margin-top: 6rem;
    padding: 3.6rem;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 2.4rem;
    display: flex;
    align-items: flex-start;
    gap: 2.8rem;
}

@media (max-width: 575px) {
    .lp-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.8rem 2.4rem;
        gap: 2rem;
    }
}

.lp-author__avatar {
    flex-shrink: 0;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--lp-bg);
    border: 3px solid var(--lp-accent);
}

.lp-author__avatar img {
    width: 116%;
    height: 116%;
    object-fit: cover;
    display: block;
    object-position: top center;
    max-width: none;
}

.lp-author__body { flex-grow: 1; }

.lp-author__label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--lp-text-muted);
    margin: 0 0 1.2rem;
}

.lp-author__name {
    font-size: 2.4rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: var(--lp-text);
    margin: 0 0 .4rem !important;
}

.lp-author__role {
    font-size: 1.4rem;
    color: var(--lp-blue);
    font-weight: 500;
    margin: 0 0 1.4rem;
    letter-spacing: .02em;
}

.lp-author__text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--lp-text-muted);
    margin: 0;
}

/* ============================================================
   "СХОЖІ СТАТТІ"
   ============================================================ */

.lp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin: 8rem 0 3.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--lp-border);
    flex-wrap: wrap;
}

@media (max-width: 575px) { .lp-section-header { margin-top: 6rem; } }

.lp-section-header__title {
    font-size: 3rem !important;
    font-weight: 600 !important;
    color: var(--lp-text);
    margin: 0 !important;
    line-height: 1.2 !important;
}

@media (max-width: 575px) { .lp-section-header__title { font-size: 2.4rem !important; } }

.lp-section-header__link {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--lp-text);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}

.lp-section-header__link:hover { color: var(--lp-blue); gap: 1.2rem; text-decoration: none; }
.lp-section-header__link svg { width: 1.4rem; height: 1.4rem; }

.lp-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

@media (max-width: 767px) {
    .lp-related__grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ============================================================
   ARTICLE CARD (related & blog list)
   ============================================================ */

.lp-card-article {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 2rem;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.65,.3,1), box-shadow .35s cubic-bezier(.2,.65,.3,1), border-color .35s ease;
}

.lp-card-article:hover {
    transform: translateY(-6px);
    box-shadow: 0 2.4rem 5rem rgba(59,71,103,.10);
    border-color: var(--lp-border-strong);
}

.lp-card-article__media {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--lp-bg);
    position: relative;
}

.lp-card-article__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2,.65,.3,1);
}

.lp-card-article:hover .lp-card-article__media img { transform: scale(1.06); }

.lp-card-article__body {
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    flex-grow: 1;
}

@media (max-width: 575px) { .lp-card-article__body { padding: 2.4rem; gap: 1.2rem; } }

.lp-card-article__cat {
    align-self: flex-start;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--lp-blue);
    text-decoration: none;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--lp-blue-soft);
    transition: color .2s ease, border-color .2s ease;
}

.lp-card-article__cat:hover {
    color: var(--lp-text);
    border-bottom-color: var(--lp-text);
    text-decoration: none;
}

.lp-card-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    font-size: 1.2rem;
    color: var(--lp-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.lp-card-article__meta-dot {
    display: inline-block;
    width: .3rem; height: .3rem;
    border-radius: 50%;
    background: var(--lp-text-faint);
}

.lp-card-article__title {
    margin: 0 !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--lp-text);
}

.lp-card-article__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.lp-card-article__title a:hover { color: var(--lp-blue); text-decoration: none; }

.lp-card-article__excerpt {
    font-size: 1.4rem;
    line-height: 1.55;
    color: var(--lp-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-card-article__more {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-top: auto;
    padding-top: .4rem;
    color: var(--lp-text);
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: color .2s ease, gap .2s ease;
    align-self: flex-start;
}

.lp-card-article__more:hover { color: var(--lp-blue); gap: 1.2rem; text-decoration: none; }
.lp-card-article__more svg { width: 1.3rem; height: 1.3rem; }

/* ============================================================
   BLOG INDEX
   ============================================================ */

.lp-blog-hero {
    text-align: center;
    max-width: 78rem;
    margin: 0 auto 4rem;
    padding: 1rem 0 3rem;
}

@media (max-width: 575px) { .lp-blog-hero { padding: 0 0 2rem; margin-bottom: 3rem; } }

.lp-blog-hero__title {
    font-size: 6rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: var(--lp-text);
    margin: 1.2rem 0 2rem !important;
    letter-spacing: -.02em;
}

@media (max-width: 991px) { .lp-blog-hero__title { font-size: 4.4rem !important; } }
@media (max-width: 575px) { .lp-blog-hero__title { font-size: 3.4rem !important; } }

.lp-blog-hero__subtitle {
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--lp-text-muted);
    margin: 0 auto;
    max-width: 64rem;
}

@media (max-width: 575px) { .lp-blog-hero__subtitle { font-size: 1.5rem; } }

/* Filter pills */
.lp-blog-filter {
    margin: 0 0 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--lp-border);
}

.lp-blog-filter__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem 1rem;
    list-style: none; padding: 0; margin: 0;
}

.lp-blog-filter__item {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--lp-border-strong);
    color: var(--lp-text);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .04em;
    transition: all .25s ease;
}

.lp-blog-filter__item:hover {
    background: var(--lp-blue);
    border-color: var(--lp-blue);
    color: #fff;
    text-decoration: none;
}

.lp-blog-filter__item.is-active {
    background: var(--lp-text);
    border-color: var(--lp-text);
    color: #fff;
}

/* Adaptive grid for blog list */
.lp-blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 0 auto;
}

@media (max-width: 1199px) {
    .lp-blog-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.4rem;
    }
}

@media (max-width: 575px) {
    .lp-blog-list { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   PAGINATION
   ============================================================ */

.lp-pagination { display: flex; justify-content: center; margin-top: 6rem; }

.lp-pagination .page-numbers {
    list-style: none; padding: 0; margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.lp-pagination .page-numbers li { margin: 0; }

.lp-pagination .page-numbers a,
.lp-pagination .page-numbers .current,
.lp-pagination .page-numbers .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    height: 4.4rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--lp-border);
    color: var(--lp-text);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.lp-pagination .page-numbers a:hover {
    background: var(--lp-blue);
    border-color: var(--lp-blue);
    color: #fff;
    text-decoration: none;
}

.lp-pagination .page-numbers .current {
    background: var(--lp-text);
    border-color: var(--lp-text);
    color: #fff;
}

.lp-pagination .page-numbers .dots {
    background: transparent;
    border-color: transparent;
    color: var(--lp-text-muted);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.lp-blog-empty {
    text-align: center;
    padding: 6rem 3rem;
    background: #fff;
    border: 1px dashed var(--lp-border-strong);
    border-radius: 2.4rem;
    max-width: 70rem;
    margin: 0 auto;
}

@media (max-width: 575px) { .lp-blog-empty { padding: 4rem 2rem; } }

.lp-blog-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.8rem;
}

.lp-blog-empty__icon svg.svg-tooth-white-icon-dims {
    width: 8.4rem !important;
    height: 6.8rem !important;
    transition: transform .5s ease;
}

.lp-blog-empty:hover .lp-blog-empty__icon svg { transform: rotate(6deg) scale(1.05); }

.lp-blog-empty__title {
    font-size: 3.2rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: var(--lp-text);
    margin: 0 0 1.6rem !important;
}

@media (max-width: 575px) { .lp-blog-empty__title { font-size: 2.4rem !important; } }

.lp-blog-empty__text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--lp-text-muted);
    margin: 0 auto 3rem;
    max-width: 50rem;
}

.lp-blog-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 2.6rem;
    border-radius: 999px;
    background: var(--lp-text);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.lp-blog-empty__btn:hover {
    background: var(--lp-blue);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

.lp-blog-empty__btn svg { width: 1.4rem; height: 1.4rem; }

/* ============================================================
   404 PAGE
   ============================================================ */

.lp-404-wrap {
    background: var(--lp-bg);
    padding: 14rem 0 10rem;
    min-height: 100vh;
}

@media (max-width: 991px) { .lp-404-wrap { padding: 11rem 0 6rem; } }
@media (max-width: 575px) { .lp-404-wrap { padding: 9rem 0 5rem; } }

.lp-404 {
    max-width: 78rem;
    margin: 0 auto;
    text-align: center;
}

.lp-404__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3.2rem;
    color: var(--lp-text);
    line-height: 1;
}

.lp-404__digit {
    font-size: 18rem;
    font-weight: 700;
    color: var(--lp-text);
    line-height: 1;
    letter-spacing: -.04em;
}

@media (max-width: 991px) {
    .lp-404__digit { font-size: 14rem; }
    .lp-404__visual { gap: 1.4rem; }
}

@media (max-width: 575px) {
    .lp-404__digit { font-size: 9rem; }
    .lp-404__visual { gap: 1rem; margin-bottom: 2.4rem; }
}

.lp-404__tooth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 2rem 4rem rgba(59, 71, 103, .12);
    animation: lp-404-bob 4s ease-in-out infinite;
}

.lp-404__tooth svg.svg-tooth-white-icon-dims {
    width: 8rem !important;
    height: 6.4rem !important;
}

@media (max-width: 991px) {
    .lp-404__tooth { width: 11rem; height: 11rem; }
    .lp-404__tooth svg.svg-tooth-white-icon-dims { width: 6.4rem !important; height: 5.2rem !important; }
}

@media (max-width: 575px) {
    .lp-404__tooth { width: 8.4rem; height: 8.4rem; box-shadow: 0 1rem 2rem rgba(59, 71, 103, .1); }
    .lp-404__tooth svg.svg-tooth-white-icon-dims { width: 5rem !important; height: 4rem !important; }
}

@keyframes lp-404-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-404__tooth { animation: none; }
}

.lp-404__title {
    font-size: 4rem !important;
    font-weight: 600 !important;
    color: var(--lp-text);
    margin: 0 0 1.6rem !important;
    line-height: 1.15 !important;
    letter-spacing: -.005em;
}

@media (max-width: 575px) { .lp-404__title { font-size: 2.8rem !important; } }

.lp-404__text {
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--lp-text-muted);
    margin: 0 auto 3.6rem;
    max-width: 56rem;
}

@media (max-width: 575px) { .lp-404__text { font-size: 1.5rem; margin-bottom: 3rem; } }

.lp-404__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 6rem;
}

@media (max-width: 575px) { .lp-404__actions { gap: .8rem; margin-bottom: 5rem; } }

.lp-404__btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem 2.8rem;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    border: 2px solid transparent;
}

.lp-404__btn svg { width: 1.4rem; height: 1.4rem; }

.lp-404__btn--primary {
    background: var(--lp-text);
    color: #fff;
}

.lp-404__btn--primary:hover {
    background: var(--lp-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.4rem rgba(76, 99, 157, .25);
    text-decoration: none;
}

.lp-404__btn--ghost {
    background: transparent;
    color: var(--lp-text);
    border-color: var(--lp-border-strong);
}

.lp-404__btn--ghost:hover {
    background: #fff;
    border-color: var(--lp-text);
    color: var(--lp-text);
    transform: translateY(-2px);
    text-decoration: none;
}

.lp-404__quick {
    text-align: left;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 2.4rem;
    padding: 4rem;
}

@media (max-width: 575px) {
    .lp-404__quick { padding: 2.8rem 2.4rem; border-radius: 2rem; }
}

.lp-404__quick-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--lp-text-muted);
    margin: 0 0 2.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--lp-border);
}

.lp-404__quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

@media (max-width: 767px) {
    .lp-404__quick-list { grid-template-columns: 1fr; }
}

.lp-404__quick-list a {
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 1.6rem 1.8rem;
    border: 1px solid var(--lp-border);
    border-radius: 1.4rem;
    color: var(--lp-text);
    text-decoration: none;
    transition: all .25s ease;
    height: 100%;
}

.lp-404__quick-list a:hover {
    background: var(--lp-bg);
    border-color: var(--lp-accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.lp-404__quick-num {
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lp-accent-dark);
    letter-spacing: .04em;
    min-width: 2.6rem;
}

.lp-404__quick-text { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }

.lp-404__quick-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lp-text);
    line-height: 1.3;
}

.lp-404__quick-sub {
    font-size: 1.3rem;
    color: var(--lp-text-muted);
    line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer__menus {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,.12);
    --bs-gutter-y: 3rem;
}

.footer__menu-label {
    color: rgba(255,255,255,.55);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer__menu-list,
.footer__menu-list ul,
.footer__menus ul.menu {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.footer__menu-list li,
.footer__menus ul.menu li { margin: 0; }

.footer__menu-list a,
.footer__menus ul.menu a {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    display: inline-block;
    transition: color .2s ease, transform .2s ease;
    border-bottom: 1px solid transparent;
}

.footer__menu-list a:hover,
.footer__menus ul.menu a:hover {
    color: var(--lp-accent) !important;
    text-decoration: none;
    transform: translateX(4px);
    border-bottom-color: var(--lp-accent);
}

.footer__bottom {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.footer__bottom .copyright {
    color: rgba(255,255,255,.65) !important;
    font-size: 1.3rem;
    letter-spacing: .04em;
}
