/*
Theme Name: Bessonov Pro
Version: 1.0.4
Theme URI: https://bessonov.pro
Author: Roman Bessonov
Author URI: https://bessonov.pro
Description: Профессиональная тема для блога об искусственном интеллекте и маркетинге. Оптимизирована для SEO и индексации AI-поисковиками.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bessonov-pro
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Bessonov Pro WordPress Theme
Copyright 2026 Roman Bessonov
*/

/* ================================================
   CSS VARIABLES - Твой фирменный стиль
   ================================================ */
:root {
    /* Основные цвета */
    --bp-dark: #0B1026;
    --bp-dark-lighter: #131836;
    --bp-dark-card: #171d42;
    --bp-primary: #7C3AED;
    --bp-primary-hover: #8B4FFF;
    --bp-primary-glow: rgba(124, 58, 237, 0.3);
    --bp-mint: #10D4A3;
    --bp-mint-glow: rgba(16, 212, 163, 0.3);
    /* Алиасы для обратной совместимости */
    --bp-orange: #7C3AED;
    --bp-orange-hover: #8B4FFF;
    --bp-orange-glow: rgba(124, 58, 237, 0.3);
    --bp-white: #ffffff;
    --bp-gray-light: #e5e5e5;
    --bp-gray: #a0a0a0;
    --bp-gray-dark: #6b6b6b;

    /* Градиенты */
    --bp-gradient-primary: linear-gradient(135deg, #0B1026 0%, #7C3AED 100%);
    --bp-gradient-accent: linear-gradient(135deg, #10D4A3 0%, #7C3AED 100%);
    --bp-gradient-orange: linear-gradient(135deg, #0B1026 0%, #7C3AED 100%);
    --bp-gradient-dark: linear-gradient(180deg, #0B1026 0%, #131836 100%);
    --bp-gradient-diagonal: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, transparent 50%);

    /* Типографика */
    --bp-font-heading: 'Manrope', 'Montserrat', sans-serif;
    --bp-font-body: 'Nunito', 'Segoe UI', sans-serif;

    /* Размеры */
    --bp-container: 1200px;
    --bp-radius: 12px;
    --bp-radius-sm: 8px;
    --bp-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --bp-shadow-orange: 0 8px 30px rgba(124, 58, 237, 0.25);

    /* Переходы */
    --bp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bp-transition-fast: all 0.15s ease;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--bp-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--bp-white);
    background: var(--bp-dark);
    overflow-x: hidden;
}

a {
    color: var(--bp-orange);
    text-decoration: none;
    transition: var(--bp-transition-fast);
}

a:hover {
    color: var(--bp-orange-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bp-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bp-white);
}

/* ================================================
   LAYOUT
   ================================================ */
.bp-container {
    max-width: var(--bp-container);
    margin: 0 auto;
    padding: 0 24px;
}

.bp-section {
    padding: 100px 0;
    position: relative;
}

.bp-section--dark {
    background: var(--bp-dark-lighter);
}

/* Диагональные полосы - твой фирменный элемент */
.bp-diagonal-stripes {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.1;
}

.bp-diagonal-stripes::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        var(--bp-orange) 20px,
        var(--bp-orange) 22px
    );
}

/* ================================================
   HEADER
   ================================================ */
.bp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 16, 38, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: var(--bp-transition);
}

.bp-header.scrolled {
    box-shadow: var(--bp-shadow);
}

.bp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.bp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--bp-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bp-white);
}

.bp-logo__icon {
    width: 42px;
    height: 42px;
    background: var(--bp-gradient-orange);
    border-radius: var(--bp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bp-logo__text span {
    color: var(--bp-orange);
}

/* Navigation */
.bp-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.bp-nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.bp-nav__link {
    color: var(--bp-gray-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.bp-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bp-orange);
    transition: var(--bp-transition);
}

.bp-nav__link:hover {
    color: var(--bp-white);
}

.bp-nav__link:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.bp-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.bp-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--bp-white);
    transition: var(--bp-transition);
}

/* ================================================
   HERO SECTION
   ================================================ */
.bp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.bp-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--bp-gradient-dark);
}

.bp-hero__bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--bp-orange-glow) 0%, transparent 70%);
    opacity: 0.5;
}

.bp-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.bp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--bp-orange);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.bp-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.bp-hero__title span {
    color: var(--bp-orange);
    position: relative;
}

.bp-hero__subtitle {
    font-size: 1.25rem;
    color: var(--bp-gray);
    margin-bottom: 40px;
    max-width: 560px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.bp-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

/* ================================================
   BUTTONS
   ================================================ */
.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--bp-font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--bp-radius);
    border: none;
    cursor: pointer;
    transition: var(--bp-transition);
    text-decoration: none;
}

.bp-btn--primary {
    background: var(--bp-gradient-orange);
    color: var(--bp-dark);
    box-shadow: var(--bp-shadow-orange);
}

.bp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
    color: var(--bp-dark);
}

.bp-btn--outline {
    background: transparent;
    color: var(--bp-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bp-btn--outline:hover {
    border-color: var(--bp-orange);
    color: var(--bp-orange);
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.bp-services__header {
    text-align: center;
    margin-bottom: 60px;
}

.bp-services__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.bp-services__subtitle {
    color: var(--bp-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.bp-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

a:has(.bp-service-card) {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bp-service-card {
    background: var(--bp-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--bp-radius);
    padding: 40px 32px;
    transition: var(--bp-transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.bp-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bp-gradient-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--bp-transition);
}

.bp-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--bp-shadow);
}

.bp-service-card:hover::before {
    transform: scaleX(1);
}

.bp-service-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 212, 163, 0.1);
    border-radius: var(--bp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.bp-service-card__title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.bp-service-card__text {
    color: var(--bp-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================
   BLOG SECTION
   ================================================ */
.bp-blog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.bp-blog__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.bp-blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

/* Post Card */
.bp-post-card {
    background: var(--bp-dark-card);
    border-radius: var(--bp-radius);
    overflow: hidden;
    transition: var(--bp-transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bp-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bp-shadow);
}

.bp-post-card__image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.bp-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--bp-transition);
}

.bp-post-card:hover .bp-post-card__image img {
    transform: scale(1.05);
}

.bp-post-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--bp-orange);
    color: var(--bp-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Оверлей с названием прямо на картинке */
.bp-post-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 16px 16px;
    background: linear-gradient(to top, rgba(11,16,38,0.92) 0%, rgba(11,16,38,0.5) 65%, transparent 100%);
}

.bp-post-card__overlay-title {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Контент под картинкой */
.bp-post-card__content {
    padding: 20px 20px 24px;
}

.bp-post-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}

.bp-post-card__title a {
    color: #ffffff !important;
    display: block;
}

.bp-post-card__title a:hover {
    color: var(--bp-orange);
}

.bp-post-card__meta {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--bp-gray);
    margin-bottom: 10px;
}

.bp-post-card__excerpt {
    color: var(--bp-gray);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-post-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bp-orange);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.bp-post-card__link:hover {
    color: #ffffff;
}

/* ================================================
   CTA / CONTACT SECTION
   ================================================ */
.bp-cta {
    background: var(--bp-dark-lighter);
    position: relative;
    overflow: hidden;
}

.bp-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bp-cta__content {
    position: relative;
    z-index: 2;
}

.bp-cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.bp-cta__text {
    color: var(--bp-gray);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Contact Form */
.bp-form {
    background: var(--bp-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--bp-radius);
    padding: 40px;
    position: relative;
}

.bp-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bp-gradient-orange);
    border-radius: var(--bp-radius) var(--bp-radius) 0 0;
}

.bp-form__group {
    margin-bottom: 20px;
}

.bp-form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--bp-gray-light);
}

.bp-form__input,
.bp-form__textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--bp-font-body);
    font-size: 1rem;
    color: var(--bp-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--bp-radius-sm);
    transition: var(--bp-transition);
}

.bp-form__input:focus,
.bp-form__textarea:focus {
    outline: none;
    border-color: var(--bp-orange);
    box-shadow: 0 0 0 3px var(--bp-orange-glow);
}

.bp-form__input::placeholder,
.bp-form__textarea::placeholder {
    color: var(--bp-gray-dark);
}

.bp-form__textarea {
    min-height: 120px;
    resize: vertical;
}

.bp-form__submit {
    width: 100%;
    margin-top: 8px;
}

/* ================================================
   FOOTER
   ================================================ */
.bp-footer {
    background: var(--bp-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.bp-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.bp-footer__brand {
    max-width: 320px;
}

.bp-footer__brand .bp-logo {
    margin-bottom: 20px;
}

.bp-footer__desc {
    color: var(--bp-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.bp-footer__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--bp-white);
}

.bp-footer__links {
    list-style: none;
}

.bp-footer__links li {
    margin-bottom: 12px;
}

.bp-footer__links a {
    color: var(--bp-gray);
    font-size: 0.9rem;
}

.bp-footer__links a:hover {
    color: var(--bp-orange);
}

.bp-footer__social {
    display: flex;
    gap: 12px;
}

.bp-footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--bp-radius-sm);
    color: var(--bp-gray);
    transition: var(--bp-transition);
}

.bp-footer__social a:hover {
    background: var(--bp-orange);
    color: var(--bp-dark);
}

.bp-footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bp-footer__copy {
    color: var(--bp-gray);
    font-size: 0.85rem;
}

/* ================================================
   SINGLE POST
   ================================================ */
.bp-single {
    padding-top: 120px;
}

.bp-single__header {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.bp-single__category {
    display: inline-block;
    background: var(--bp-orange);
    color: var(--bp-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.bp-single__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.bp-single__meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--bp-gray);
    font-size: 0.95rem;
}

.bp-single__featured {
    max-width: 1000px;
    margin: 0 auto 48px;
    border-radius: var(--bp-radius);
    overflow: hidden;
}

.bp-single__featured img {
    width: 100%;
    height: auto;
}

.bp-single__content {
    max-width: 760px;
    margin: 0 auto;
}

.bp-single__content h2 {
    font-size: 1.75rem;
    margin: 48px 0 20px;
}

.bp-single__content h3 {
    font-size: 1.35rem;
    margin: 36px 0 16px;
}

.bp-single__content p {
    margin-bottom: 20px;
    color: var(--bp-gray-light);
}

.bp-single__content ul,
.bp-single__content ol {
    margin: 20px 0;
    padding-left: 24px;
    color: var(--bp-gray-light);
}

.bp-single__content li {
    margin-bottom: 10px;
}

.bp-single__content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--bp-dark-card);
    border-left: 4px solid var(--bp-orange);
    border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0;
    font-style: italic;
    color: var(--bp-gray-light);
}

.bp-single__content code {
    background: rgba(124, 58, 237, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--bp-orange);
}

.bp-single__content pre {
    background: var(--bp-dark-card);
    padding: 24px;
    border-radius: var(--bp-radius-sm);
    overflow-x: auto;
    margin: 24px 0;
}

.bp-single__content pre code {
    background: none;
    padding: 0;
    color: var(--bp-gray-light);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .bp-cta__inner {
        grid-template-columns: 1fr;
    }
    .bp-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .bp-blog__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Контейнер */
    .bp-container {
        padding: 0 16px;
    }

    /* Секции */
    .bp-section {
        padding: 56px 0;
    }

    /* Хедер */
    .bp-header__inner {
        height: 64px;
    }

    /* Мобильное меню */
    .bp-nav {
        gap: 16px;
    }
    .bp-nav__list {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(11, 16, 38, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 16px;
        gap: 4px;
        border-bottom: 1px solid rgba(124, 58, 237, 0.15);
        z-index: 999;
    }
    .bp-nav__list.active {
        display: flex;
    }
    .bp-nav__list li {
        width: 100%;
    }
    .bp-nav__link {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 1rem;
    }
    .bp-nav__link:hover {
        background: rgba(124,58,237,0.08);
    }
    .bp-menu-toggle {
        display: flex;
    }
    /* Кнопка "Консультация" в меню — скрываем в nav, оставляем только бургер */
    .bp-nav > .bp-btn {
        display: none;
    }

    /* Гамбургер анимация */
    .bp-menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .bp-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .bp-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero */
    .bp-hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .bp-hero__title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        word-break: break-word;
    }
    .bp-hero__subtitle {
        font-size: 1rem;
    }
    .bp-hero__badge {
        font-size: 0.8rem;
    }
    .bp-hero__actions {
        flex-direction: column;
        gap: 12px;
    }
    .bp-hero__actions .bp-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Сетки */
    .bp-services__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bp-blog__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Карточки услуг */
    .bp-service-card {
        padding: 24px 20px;
    }

    /* Карточки статей */
    .bp-post-card__content {
        padding: 16px;
    }
    .bp-post-card__title {
        font-size: 1rem;
    }

    /* Блог хедер */
    .bp-blog__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
    }

    /* Таблица */
    .bp-single__content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Одиночная статья */
    .bp-single__header {
        padding: 80px 0 32px;
    }
    .bp-single__title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        word-break: break-word;
    }

    /* Навигация между статьями */
    nav[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* CTA секция */
    .bp-cta__inner {
        padding: 32px 20px;
        gap: 32px;
    }

    /* Форма */
    .bp-form {
        padding: 24px 20px;
    }

    /* Подвал */
    .bp-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .bp-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .bp-logo__text {
        font-size: 1.1rem;
    }
    .bp-logo__icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .bp-section {
        padding: 44px 0;
    }
    .bp-hero__title {
        font-size: clamp(1.3rem, 8vw, 1.8rem);
    }
    .bp-post-card__overlay-title {
        font-size: 0.85rem;
    }
    /* Таблицы в статьях */
    .bp-single__content table,
    .bp-single__content [style*="border-collapse"] {
        font-size: 0.8rem;
    }
}
