/*
Theme Name: Bessonov Pro
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: #07061A;
    --bp-dark-lighter: #0f0e24;
    --bp-dark-card: #12112a;
    --bp-orange: #FF8C00;
    --bp-orange-hover: #ff9d26;
    --bp-orange-glow: rgba(255, 140, 0, 0.3);
    --bp-white: #ffffff;
    --bp-gray-light: #e5e5e5;
    --bp-gray: #a0a0a0;
    --bp-gray-dark: #6b6b6b;
    
    /* Градиенты */
    --bp-gradient-orange: linear-gradient(135deg, #FF8C00 0%, #ff6b00 100%);
    --bp-gradient-dark: linear-gradient(180deg, #07061A 0%, #0f0e24 100%);
    --bp-gradient-diagonal: linear-gradient(135deg, rgba(255,140,0,0.1) 0%, transparent 50%);
    
    /* Типографика */
    --bp-font-heading: 'Unbounded', 'Montserrat', sans-serif;
    --bp-font-body: 'Inter', '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(255, 140, 0, 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(7, 6, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 140, 0, 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(255, 140, 0, 0.15);
    border: 1px solid rgba(255, 140, 0, 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(255, 140, 0, 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;
}

.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;
}

.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(255, 140, 0, 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(255, 140, 0, 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 {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.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__content {
    padding: 28px;
}

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

.bp-post-card__title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

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

.bp-post-card__excerpt {
    color: var(--bp-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================
   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(255, 140, 0, 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;
    }
}

@media (max-width: 768px) {
    .bp-nav__list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bp-dark);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    }
    
    .bp-nav__list.active {
        display: flex;
    }
    
    .bp-menu-toggle {
        display: flex;
    }
    
    .bp-section {
        padding: 60px 0;
    }
    
    .bp-hero__actions {
        flex-direction: column;
    }
    
    .bp-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .bp-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bp-services__grid,
    .bp-blog__grid {
        grid-template-columns: 1fr;
    }
    
    .bp-form {
        padding: 24px;
    }
}

/* ================================================
   AGENCY SECTION - Бессонов Про...
   ================================================ */
.bp-agency-section {
    background: var(--bp-dark-lighter);
    position: relative;
    overflow: hidden;
}

.bp-agency-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--bp-gradient-diagonal);
    pointer-events: none;
}

.bp-agency__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bp-agency__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.25);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--bp-orange);
    margin-bottom: 20px;
}

.bp-agency__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--bp-white);
}

.bp-agency__title span {
    color: var(--bp-orange);
    display: block;
}

.bp-agency__text {
    color: var(--bp-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.bp-agency__quote {
    color: var(--bp-gray-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

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

/* Right side */
.bp-agency__right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bp-agency__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bp-agency__stat {
    background: var(--bp-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--bp-radius);
    padding: 24px;
    text-align: center;
    transition: var(--bp-transition);
}

.bp-agency__stat:hover {
    border-color: rgba(255, 140, 0, 0.2);
    transform: translateY(-2px);
}

.bp-agency__stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bp-orange);
    line-height: 1;
    margin-bottom: 6px;
}

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

.bp-agency__services {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bp-agency__service {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bp-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--bp-radius-sm);
    padding: 16px 20px;
    transition: var(--bp-transition);
}

.bp-agency__service:hover {
    border-color: rgba(255, 140, 0, 0.2);
    background: rgba(255, 140, 0, 0.05);
}

.bp-agency__service-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bp-agency__service div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bp-agency__service strong {
    color: var(--bp-white);
    font-size: 0.95rem;
    font-weight: 600;
}

.bp-agency__service span {
    color: var(--bp-gray);
    font-size: 0.8rem;
}

/* Agency section responsive */
@media (max-width: 1024px) {
    .bp-agency__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .bp-agency__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bp-agency__stat {
        padding: 16px;
    }
    
    .bp-agency__stat-number {
        font-size: 1.5rem;
    }
}
