/*
Theme Name: PreludeSEO_257
Theme URI: https://prelude-technologies.com
Author: Михайлов Александр
Author URI: https://prelude-technologies.com
Description: Тема для информационных сайтов о SEO продвижении
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: preludeseo257
*/

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #4A5568;
    background-color: #FFFFFF;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: #E67E22;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d35400;
}

/* === ТЕКСТУРА ФОНА === */
.pl-content-zone {
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='4' height='4' fill='%23f5f5f5' opacity='0.5'/%3E%3Ccircle cx='2' cy='2' r='0.5' fill='%23e0e0e0' opacity='0.3'/%3E%3C/svg%3E");
}

/* === ТИПОГРАФИКА === */
h1, h2, h3, h4, h5, h6 {
    color: #0A1C3A;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    margin-top: 1.2em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1.1em;
    line-height: 1.75;
}

blockquote {
    border-left: 4px solid #E67E22;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: #f9f6f2;
    color: #4A5568;
    font-style: italic;
}

pre, code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}

pre {
    background: #1E1E1E;
    color: #d4d4d4;
    padding: 1.2em 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    line-height: 1.5;
}

code {
    background: #f0f0f0;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #0A1C3A;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* === ТАБЛИЦЫ === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

th, td {
    border: 1px solid #d1d5db;
    padding: 0.7em 1em;
    text-align: left;
}

th {
    background: #1E2A5E;
    color: #FFFFFF;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #eef2f7;
}

/* === ПРОГРЕСС-БАР ЧТЕНИЯ === */
.pl-reading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #E67E22, #f39c12);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* === ШАПКА === */
.pl-site-masthead {
    background: #1E2A5E;
    padding: 0;
    position: relative;
}

.pl-masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9em 2em;
}

.pl-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pl-brand-logo {
    height: 40px;
    width: auto;
}

.pl-brand-info {
    display: flex;
    flex-direction: column;
}

.pl-brand-name {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.pl-brand-tagline {
    color: #9ca3af;
    font-size: 0.78rem;
    line-height: 1.3;
}

/* === НАВИГАЦИЯ === */
.pl-main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

.pl-main-nav li {
    position: relative;
}

.pl-main-nav a {
    color: #c8d6e5;
    padding: 0.6em 1.1em;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 6px;
}

.pl-main-nav a:hover,
.pl-main-nav .current-menu-item a,
.pl-main-nav .current_page_item a {
    color: #FFFFFF;
    background-color: rgba(230, 126, 34, 0.2);
}

.pl-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.pl-nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #FFFFFF;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* === КОНТЕНТНАЯ ОБЛАСТЬ === */
.pl-page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
    min-height: 60vh;
}

.pl-page-body.pl-with-aside {
    display: flex;
    gap: 3%;
    align-items: flex-start;
}

.pl-articles-stream {
    width: 85%;
    margin: 0 auto;
}

.pl-with-aside .pl-articles-stream {
    width: 67%;
    margin: 0;
}

.pl-lateral-panel {
    width: 27%;
    flex-shrink: 0;
    position: sticky;
    top: 2em;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.pl-trail-path {
    padding: 0.8em 0;
    margin-bottom: 1.5em;
    font-size: 0.88rem;
    color: #6b7280;
}

.pl-trail-path a {
    color: #1E2A5E;
}

.pl-trail-path a:hover {
    color: #E67E22;
}

.pl-trail-divider {
    margin: 0 0.4em;
    color: #9ca3af;
}

/* === КАРТОЧКИ СТАТЕЙ === */
.pl-entry-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2em;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.pl-entry-card:hover {
    box-shadow: 0 8px 30px rgba(30, 42, 94, 0.12);
    transform: translateY(-2px);
}

.pl-entry-card-visual {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.pl-entry-card-body {
    flex: 1;
    padding: 1.5em;
}

.pl-entry-card-headline {
    font-size: 1.3rem;
    margin-bottom: 0.5em;
    margin-top: 0;
}

.pl-entry-card-headline a {
    color: #0A1C3A;
    transition: color 0.3s;
}

.pl-entry-card-headline a:hover {
    color: #E67E22;
}

.pl-entry-card-snippet {
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1em;
}

.pl-entry-card-snippet p {
    margin: 0 0 0.5em;
    background: none;
}

.pl-entry-card-snippet a {
    color: #E67E22;
    text-decoration: underline;
}

.pl-entry-meta-line {
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 0.85rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.pl-freshness-tag {
    display: inline-block;
    padding: 0.2em 0.7em;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.pl-freshness-new {
    background: #fef3cd;
    color: #856404;
}

.pl-freshness-updated {
    background: #d1ecf1;
    color: #0c5460;
}

.pl-freshness-classic {
    background: #e2e3e5;
    color: #383d41;
}

.pl-go-further {
    display: inline-block;
    color: #E67E22;
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.pl-go-further:hover {
    border-bottom-color: #E67E22;
}

/* === ПАГИНАЦИЯ === */
.pl-page-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    padding: 2em 0;
    flex-wrap: wrap;
}

.pl-page-numbers a,
.pl-page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7em;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.pl-page-numbers a {
    background: #f3f4f6;
    color: #1E2A5E;
}

.pl-page-numbers a:hover {
    background: #E67E22;
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.pl-page-numbers .current {
    background: #1E2A5E;
    color: #fff;
}

/* === ОДИНОЧНАЯ ЗАПИСЬ === */
.pl-single-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e5e7eb;
}

.pl-single-headline {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 0.4em;
    line-height: 1.2;
}

.pl-single-content {
    font-size: 1.05rem;
}

.pl-single-content p {
    margin-bottom: 1.2em;
}

.pl-single-content h2 {
    margin-top: 2em;
}

.pl-single-content h3 {
    margin-top: 1.5em;
}

.pl-single-content ul,
.pl-single-content ol {
    margin: 1em 0 1em 1.5em;
}

.pl-single-content li {
    margin-bottom: 0.5em;
}

.pl-post-taxonomy {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #6b7280;
}

.pl-post-taxonomy a {
    color: #1E2A5E;
    font-weight: 500;
}

/* === САЙДБАР === */
.pl-lateral-panel .widget {
    background: #2C3E50;
    border-radius: 10px;
    padding: 1.3em;
    margin-bottom: 1.5em;
    color: #d1d5db;
}

.pl-lateral-panel .widget-title,
.pl-lateral-panel .widgettitle {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 0.8em;
    margin-top: 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #E67E22;
}

.pl-lateral-panel .widget a {
    color: #E67E22;
}

.pl-lateral-panel .widget a:hover {
    color: #f39c12;
}

.pl-lateral-panel .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pl-lateral-panel .widget li {
    padding: 0.45em 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pl-lateral-panel .widget li:last-child {
    border-bottom: none;
}

/* Блок эксперта */
.pl-expert-card {
    background: linear-gradient(135deg, #2C3E50, #1E2A5E);
    border-radius: 10px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    text-align: center;
    color: #d1d5db;
}

.pl-expert-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #E67E22;
    margin: 0 auto 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
}

.pl-expert-name {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3em;
}

.pl-expert-role {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 1em;
}

.pl-kpi-row {
    display: flex;
    justify-content: space-around;
    gap: 0.5em;
}

.pl-kpi-item {
    text-align: center;
}

.pl-kpi-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #E67E22;
    display: block;
}

.pl-kpi-label {
    font-size: 0.72rem;
    color: #9ca3af;
    display: block;
}

/* === КОММЕНТАРИИ === */
.pl-discussion-area {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid #e5e7eb;
}

.pl-discussion-heading {
    font-size: 1.4rem;
    margin-bottom: 1.5em;
    margin-top: 0;
}

.pl-remark-list {
    list-style: none;
    padding: 0;
}

.pl-remark-list .pl-remark-list {
    margin-left: 2em;
    padding-left: 1em;
    border-left: 2px solid #e5e7eb;
}

.pl-remark-entry {
    margin-bottom: 1.5em;
    padding: 1.2em;
    background: #f9fafb;
    border-radius: 8px;
}

.pl-remark-author {
    font-weight: 700;
    color: #0A1C3A;
}

.pl-remark-date {
    font-size: 0.82rem;
    color: #6b7280;
    margin-left: 0.7em;
}

.pl-remark-body {
    margin-top: 0.6em;
}

.pl-remark-body p {
    margin-bottom: 0.5em;
}

.pl-reply-link {
    font-size: 0.85rem;
    color: #E67E22;
    font-weight: 600;
}

/* Форма комментариев */
.pl-response-form label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 600;
    color: #0A1C3A;
    font-size: 0.92rem;
}

.pl-response-form input[type="text"],
.pl-response-form input[type="email"],
.pl-response-form input[type="url"],
.pl-response-form textarea {
    width: 100%;
    padding: 0.7em 1em;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 1em;
    transition: border-color 0.3s;
    color: #4A5568;
    background: #fff;
}

.pl-response-form input:focus,
.pl-response-form textarea:focus {
    outline: none;
    border-color: #E67E22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.pl-response-form textarea {
    min-height: 140px;
    resize: vertical;
}

.pl-submit-remark {
    background: #E67E22;
    color: #fff;
    border: none;
    padding: 0.75em 2em;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.25);
}

.pl-submit-remark:hover {
    background: #f09839;
    box-shadow: 0 5px 18px rgba(230, 126, 34, 0.35);
}

/* === ПОИСК === */
.pl-lookup-box {
    display: flex;
    gap: 0;
}

.pl-lookup-field {
    flex: 1;
    padding: 0.65em 1em;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #4A5568;
    background: #fff;
}

.pl-lookup-field:focus {
    outline: none;
    border-color: #E67E22;
}

.pl-lookup-submit {
    background: #E67E22;
    color: #fff;
    border: none;
    padding: 0.65em 1.2em;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.pl-lookup-submit:hover {
    background: #f09839;
}

/* === ТЕМАТИЧЕСКИЕ БЛОКИ ГЛАВНОЙ === */
.pl-topic-block {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 2em;
    margin-bottom: 2.5em;
    border-left: 4px solid #E67E22;
}

.pl-topic-block h2 {
    margin-top: 0;
    color: #1E2A5E;
    font-size: 1.4rem;
}

.pl-topic-block p {
    color: #4A5568;
    line-height: 1.75;
    margin-bottom: 0;
}

/* === ФУТЕР === */
.pl-site-basement {
    background: #1E2A5E;
    color: #c8d6e5;
    padding-top: 0;
}

/* Метрики */
.pl-metrics-band {
    background: #162047;
    padding: 1.5em 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pl-metrics-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3em;
    padding: 0 2em;
    flex-wrap: wrap;
}

.pl-metric-block {
    text-align: center;
}

.pl-metric-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #E67E22;
    display: block;
}

.pl-metric-desc {
    font-size: 0.82rem;
    color: #9ca3af;
}

/* Виджеты футера */
.pl-basement-widgets {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2em;
    padding: 2.5em 2em;
}

.pl-basement-col .widget {
    color: #c8d6e5;
}

.pl-basement-col .widget-title,
.pl-basement-col .widgettitle {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #E67E22;
}

.pl-basement-col .widget a {
    color: #c8d6e5;
    transition: color 0.3s;
}

.pl-basement-col .widget a:hover {
    color: #E67E22;
}

.pl-basement-col .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pl-basement-col .widget li {
    padding: 0.4em 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pl-basement-col .widget li:last-child {
    border-bottom: none;
}

/* Подвал копирайт */
.pl-legal-line {
    text-align: center;
    padding: 1.2em 2em;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.88rem;
    color: #9ca3af;
}

/* === КУКИ-БАННЕР === */
.pl-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2C3E50;
    color: #d1d5db;
    padding: 1.2em 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.pl-cookie-notice p {
    margin: 0;
    font-size: 0.92rem;
}

.pl-cookie-accept {
    background: #E67E22;
    color: #fff;
    border: none;
    padding: 0.55em 1.8em;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.25);
    white-space: nowrap;
}

.pl-cookie-accept:hover {
    background: #f09839;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.35);
}

.pl-cookie-hidden {
    display: none !important;
}

/* === 404 === */
.pl-lost-page {
    text-align: center;
    padding: 4em 2em;
}

.pl-lost-page h1 {
    font-size: 5rem;
    color: #E67E22;
    margin-bottom: 0.2em;
    margin-top: 0;
}

.pl-lost-page p {
    font-size: 1.15rem;
    color: #6b7280;
}

.pl-back-home {
    display: inline-block;
    margin-top: 1.5em;
    padding: 0.75em 2em;
    background: #1E2A5E;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s, box-shadow 0.3s;
}

.pl-back-home:hover {
    background: #2a3d7a;
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 42, 94, 0.3);
}

/* === КНОПКИ КАТЕГОРИЙ === */
.pl-pill-tag {
    display: inline-block;
    padding: 0.25em 0.85em;
    border: 1px solid #2C3E50;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #2C3E50;
    margin-right: 0.4em;
    margin-bottom: 0.4em;
    transition: background 0.3s, color 0.3s;
}

.pl-pill-tag:hover {
    background: #2C3E50;
    color: #fff;
}

/* === АДАПТИВ === */
@media (max-width: 960px) {
    .pl-page-body.pl-with-aside {
        flex-direction: column;
    }

    .pl-articles-stream,
    .pl-with-aside .pl-articles-stream {
        width: 100%;
    }

    .pl-lateral-panel {
        width: 100%;
        position: static;
    }

    .pl-basement-widgets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pl-masthead-inner {
        flex-wrap: wrap;
    }

    .pl-nav-toggle {
        display: block;
    }

    .pl-main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .pl-main-nav.pl-nav-open {
        display: block;
    }

    .pl-main-nav ul {
        flex-direction: column;
        padding: 0.8em 0;
    }

    .pl-main-nav a {
        padding: 0.7em 0.5em;
    }

    .pl-articles-stream {
        width: 100%;
    }

    .pl-single-headline {
        font-size: 1.6rem;
    }

    .pl-metrics-inner {
        gap: 1.5em;
    }

    .pl-brand-tagline {
        display: none;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

    .pl-page-body {
        padding: 1em;
    }

    .pl-entry-card-body {
        padding: 1em;
    }

    .pl-cookie-notice {
        flex-direction: column;
        text-align: center;
        gap: 0.8em;
    }
}
