/*
Theme Name: RedConstArch_987
Theme URI: https://redconst.ru
Author: Дмитриева Виктория
Author URI: https://redconst.ru
Description: Проекты, технологии и советы по строительству загородных домов.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redconstarch
*/

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --rc-terracotta: #B5452A;
    --rc-terracotta-dark: #8C3520;
    --rc-terracotta-light: #D4856F;
    --rc-graphite: #3A3A3C;
    --rc-graphite-light: #5A5A5E;
    --rc-beige: #F0E6D6;
    --rc-beige-dark: #D9CCBA;
    --rc-milk: #FAF8F5;
    --rc-white: #FFFFFF;
    --rc-black: #1A1A1B;
    --rc-border: #D1C7B8;
    --rc-shadow: rgba(58, 58, 60, 0.12);
    --rc-shadow-hover: rgba(181, 69, 42, 0.18);
    --rc-font-heading: 'DM Sans', 'Segoe UI', sans-serif;
    --rc-font-body: 'Source Serif 4', 'Georgia', serif;
    --rc-font-mono: 'JetBrains Mono', monospace;
    --rc-radius: 4px;
    --rc-transition: 0.25s ease;
    --rc-max-width: 1240px;
    --rc-gap: 28px;
}

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

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

body {
    font-family: var(--rc-font-body);
    font-size: 1rem;
    line-height: 1.72;
    color: var(--rc-graphite);
    background-color: var(--rc-milk);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--rc-terracotta);
    text-decoration: none;
    transition: color var(--rc-transition);
}

a:hover,
a:focus {
    color: var(--rc-terracotta-dark);
}

ul, ol {
    list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rc-font-heading);
    font-weight: 700;
    color: var(--rc-black);
    line-height: 1.25;
    margin-bottom: 0.6em;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1.15em;
}

blockquote {
    border-left: 3px solid var(--rc-terracotta);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--rc-beige);
    color: var(--rc-graphite);
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

table, th, td {
    border: 1px solid var(--rc-border);
}

th, td {
    padding: 0.65em 1em;
    text-align: left;
}

th {
    background: var(--rc-beige);
    font-family: var(--rc-font-heading);
    font-weight: 600;
    color: var(--rc-black);
}

td {
    background: var(--rc-white);
}

code, pre {
    font-family: var(--rc-font-mono);
    font-size: 0.88em;
}

pre {
    background: var(--rc-graphite);
    color: var(--rc-beige);
    padding: 1.2em 1.5em;
    border-radius: var(--rc-radius);
    overflow-x: auto;
    margin: 1.5em 0;
}

code {
    background: var(--rc-beige);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

pre code {
    background: none;
    padding: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--rc-border);
    margin: 2em 0;
}

/* ===== КНОПКИ ===== */
.rc-btn {
    display: inline-block;
    font-family: var(--rc-font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.7em 1.8em;
    border-radius: var(--rc-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--rc-transition);
    text-align: center;
    line-height: 1.4;
}

.rc-btn-primary {
    background: var(--rc-terracotta);
    color: var(--rc-white);
    border-color: var(--rc-terracotta);
    box-shadow: 0 2px 8px var(--rc-shadow);
}

.rc-btn-primary:hover {
    background: var(--rc-terracotta-dark);
    border-color: var(--rc-terracotta-dark);
    color: var(--rc-white);
    box-shadow: 0 4px 16px var(--rc-shadow-hover);
    transform: translateY(-1px);
}

.rc-btn-outline {
    background: transparent;
    color: var(--rc-graphite);
    border-color: var(--rc-graphite);
}

.rc-btn-outline:hover {
    background: var(--rc-graphite);
    color: var(--rc-white);
}

/* ===== ОБЁРТКА ===== */
.rc-wrap {
    max-width: var(--rc-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ШАПКА ===== */
.rc-header {
    background: var(--rc-white);
    border-bottom: 1px solid var(--rc-border);
    position: relative;
    z-index: 100;
    transition: all 0.35s ease;
}

.rc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 20px;
}

.rc-header.rc-header-compact .rc-header-inner {
    padding: 10px 0;
}

.rc-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--rc-black);
    font-family: var(--rc-font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.rc-logo img,
.rc-logo svg {
    height: 42px;
    width: auto;
}

.rc-header.rc-header-compact .rc-logo img,
.rc-header.rc-header-compact .rc-logo svg {
    height: 32px;
}

.rc-logo .rc-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.rc-logo .rc-logo-desc {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--rc-graphite-light);
    letter-spacing: 0.02em;
}

/* ===== НАВИГАЦИЯ ===== */
.rc-nav {
    display: flex;
    align-items: center;
}

.rc-nav ul {
    display: flex;
    gap: 6px;
    list-style: none;
}

.rc-nav ul li a {
    font-family: var(--rc-font-heading);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--rc-graphite);
    padding: 0.5em 1em;
    border-radius: var(--rc-radius);
    transition: all var(--rc-transition);
    position: relative;
}

.rc-nav ul li a:hover,
.rc-nav ul li.current-menu-item a,
.rc-nav ul li.current_page_item a {
    color: var(--rc-terracotta);
    background: rgba(181, 69, 42, 0.06);
}

.rc-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--rc-graphite);
    z-index: 110;
}

.rc-menu-toggle svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ===== ГЕРОЙ (FRONT PAGE) ===== */
.rc-hero {
    background: linear-gradient(135deg, var(--rc-graphite) 0%, var(--rc-black) 100%);
    color: var(--rc-white);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.rc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.03) 59px, rgba(255,255,255,0.03) 60px),
        repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.03) 59px, rgba(255,255,255,0.03) 60px);
    pointer-events: none;
}

.rc-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rc-terracotta);
}

.rc-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.rc-hero h1 {
    color: var(--rc-white);
    font-size: 2.6rem;
    margin-bottom: 0.5em;
    letter-spacing: -0.025em;
}

.rc-hero p {
    font-size: 1.15rem;
    color: var(--rc-beige);
    line-height: 1.7;
    margin-bottom: 1.6em;
}

.rc-hero .rc-btn-primary {
    margin-right: 12px;
}

/* ===== СЕКЦИИ ===== */
.rc-section {
    padding: 64px 0;
}

.rc-section-title {
    font-size: 1.65rem;
    margin-bottom: 0.35em;
    position: relative;
    display: inline-block;
}

.rc-section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--rc-terracotta);
    margin-top: 10px;
    border-radius: 2px;
}

.rc-section-desc {
    color: var(--rc-graphite-light);
    margin-bottom: 2em;
    max-width: 560px;
}

/* ===== КАРТОЧКИ ЗАПИСЕЙ ===== */
.rc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--rc-gap);
}

.rc-card {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    overflow: hidden;
    transition: all var(--rc-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.rc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background var(--rc-transition);
}

.rc-card:hover {
    box-shadow: 0 8px 32px var(--rc-shadow);
    transform: translateY(-3px);
}

.rc-card:hover::before {
    background: var(--rc-terracotta);
}

.rc-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--rc-beige);
}

.rc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rc-card:hover .rc-card-thumb img {
    transform: scale(1.04);
}

.rc-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(26, 26, 27, 0.25), transparent);
    pointer-events: none;
}

.rc-card-body {
    padding: 22px 24px 26px;
    flex: 1;
}

.rc-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--rc-font-heading);
    font-size: 0.78rem;
    color: var(--rc-graphite-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rc-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rc-card-cat {
    color: var(--rc-terracotta);
    font-weight: 600;
}

.rc-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5em;
    line-height: 1.35;
}

.rc-card-title a {
    color: var(--rc-black);
}

.rc-card-title a:hover {
    color: var(--rc-terracotta);
}

.rc-card-excerpt {
    font-size: 0.92rem;
    color: var(--rc-graphite-light);
    line-height: 1.65;
    margin-bottom: 1em;
}

.rc-card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.rc-card-more {
    font-family: var(--rc-font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rc-terracotta);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--rc-transition);
}

.rc-card-more:hover {
    gap: 10px;
    color: var(--rc-terracotta-dark);
}

/* ===== КАТЕГОРИИ (СЕКЦИЯ НА ГЛАВНОЙ) ===== */
.rc-categories {
    background: var(--rc-beige);
    border-top: 1px solid var(--rc-beige-dark);
    border-bottom: 1px solid var(--rc-beige-dark);
}

.rc-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rc-gap);
}

.rc-cat-item {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 32px 28px;
    text-align: center;
    transition: all var(--rc-transition);
    position: relative;
}

.rc-cat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--rc-terracotta);
    transition: width var(--rc-transition);
}

.rc-cat-item:hover {
    box-shadow: 0 6px 24px var(--rc-shadow);
}

.rc-cat-item:hover::after {
    width: 60%;
}

.rc-cat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    color: var(--rc-terracotta);
}

.rc-cat-icon svg {
    width: 100%;
    height: 100%;
}

.rc-cat-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
}

.rc-cat-item p {
    font-size: 0.88rem;
    color: var(--rc-graphite-light);
    line-height: 1.6;
}

/* ===== ТЕМАТИЧЕСКИЕ БЛОКИ ГЛАВНОЙ ===== */
.rc-about-block {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 40px;
    position: relative;
}

.rc-about-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rc-terracotta);
    border-radius: var(--rc-radius) var(--rc-radius) 0 0;
}

.rc-about-block p {
    line-height: 1.75;
    color: var(--rc-graphite);
}

.rc-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.rc-feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rc-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--rc-beige);
    border-radius: var(--rc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-terracotta);
}

.rc-feature-icon svg {
    width: 24px;
    height: 24px;
}

.rc-feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25em;
}

.rc-feature-item p {
    font-size: 0.9rem;
    color: var(--rc-graphite-light);
    margin-bottom: 0;
}

.rc-stages-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: stage;
}

.rc-stage-card {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 28px 22px;
    text-align: center;
    position: relative;
    counter-increment: stage;
}

.rc-stage-card::before {
    content: counter(stage);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--rc-terracotta);
    color: var(--rc-white);
    font-family: var(--rc-font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    margin: 0 auto 14px;
}

.rc-stage-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4em;
}

.rc-stage-card p {
    font-size: 0.85rem;
    color: var(--rc-graphite-light);
    line-height: 1.55;
    margin-bottom: 0;
}

.rc-tips-block {
    background: var(--rc-beige);
    border-radius: var(--rc-radius);
    padding: 40px;
}

.rc-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.rc-tip-card {
    background: var(--rc-white);
    border-radius: var(--rc-radius);
    padding: 28px 24px;
    border: 1px solid var(--rc-border);
}

.rc-tip-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4em;
    color: var(--rc-terracotta-dark);
}

.rc-tip-card p {
    font-size: 0.9rem;
    color: var(--rc-graphite);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .rc-features-list {
        grid-template-columns: 1fr;
    }

    .rc-stages-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .rc-tips-grid {
        grid-template-columns: 1fr;
    }

    .rc-about-block {
        padding: 28px 24px;
    }

    .rc-tips-block {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .rc-stages-row {
        grid-template-columns: 1fr;
    }
}

/* ===== LAYOUT: КОНТЕНТ + САЙДБАР ===== */
.rc-content-area {
    padding: 48px 0;
}

.rc-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.rc-main {
    flex: 1;
    min-width: 0;
}

.rc-main-wide {
    width: 85%;
    margin: 0 auto;
}

.rc-layout .rc-main {
    width: 67%;
}

.rc-sidebar {
    width: 27%;
    flex-shrink: 0;
}

.rc-main-nosidebar {
    width: 85%;
    margin: 0 auto;
}

/* ===== САЙДБАР ===== */
.rc-sidebar .widget {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.rc-sidebar .widget-title,
.rc-sidebar .widgettitle {
    font-family: var(--rc-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rc-black);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rc-terracotta);
}

.rc-sidebar .widget ul {
    list-style: none;
}

.rc-sidebar .widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--rc-beige);
}

.rc-sidebar .widget ul li:last-child {
    border-bottom: none;
}

.rc-sidebar .widget ul li a {
    color: var(--rc-graphite);
    font-size: 0.92rem;
}

.rc-sidebar .widget ul li a:hover {
    color: var(--rc-terracotta);
}

/* ===== ОДИНОЧНАЯ ЗАПИСЬ / СТРАНИЦА ===== */
.rc-article {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 40px;
    margin-bottom: 32px;
}

.rc-article-header {
    margin-bottom: 28px;
}

.rc-article-header h1 {
    font-size: 2rem;
    margin-bottom: 0.4em;
}

.rc-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--rc-font-heading);
    font-size: 0.82rem;
    color: var(--rc-graphite-light);
}

.rc-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rc-article-content {
    font-size: 1.02rem;
    line-height: 1.78;
}

.rc-article-content h2 {
    margin-top: 1.8em;
}

.rc-article-content h3 {
    margin-top: 1.5em;
}

.rc-article-content ul,
.rc-article-content ol {
    margin-bottom: 1.2em;
    padding-left: 1.2em;
}

.rc-article-content li {
    margin-bottom: 0.4em;
}

.rc-article-content img {
    border-radius: var(--rc-radius);
    margin: 1.5em 0;
}

.rc-article-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--rc-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rc-article-tags a {
    font-family: var(--rc-font-heading);
    font-size: 0.8rem;
    background: var(--rc-beige);
    color: var(--rc-graphite);
    padding: 4px 12px;
    border-radius: var(--rc-radius);
    transition: all var(--rc-transition);
}

.rc-article-tags a:hover {
    background: var(--rc-terracotta);
    color: var(--rc-white);
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.rc-breadcrumbs {
    font-family: var(--rc-font-heading);
    font-size: 0.82rem;
    color: var(--rc-graphite-light);
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.rc-breadcrumbs a {
    color: var(--rc-graphite-light);
}

.rc-breadcrumbs a:hover {
    color: var(--rc-terracotta);
}

.rc-breadcrumbs .rc-bc-sep {
    margin: 0 4px;
    color: var(--rc-border);
}

.rc-breadcrumbs .rc-bc-current {
    color: var(--rc-terracotta);
    font-weight: 500;
}

/* ===== ПАГИНАЦИЯ ===== */
.rc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    font-family: var(--rc-font-heading);
}

.rc-pagination a,
.rc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--rc-radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--rc-transition);
    border: 1px solid var(--rc-border);
    color: var(--rc-graphite);
    background: var(--rc-white);
}

.rc-pagination a:hover {
    border-color: var(--rc-terracotta);
    color: var(--rc-terracotta);
    background: var(--rc-white);
}

.rc-pagination .current {
    background: var(--rc-terracotta);
    border-color: var(--rc-terracotta);
    color: var(--rc-white);
}

.rc-pagination .dots {
    border: none;
    background: none;
    color: var(--rc-graphite-light);
}

/* ===== КОММЕНТАРИИ ===== */
.rc-comments {
    background: var(--rc-white);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 36px 40px;
    margin-bottom: 32px;
}

.rc-comments h2 {
    font-size: 1.3rem;
    margin-bottom: 1em;
}

.rc-comment-list {
    list-style: none;
}

.rc-comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--rc-beige);
}

.rc-comment-list .comment:last-child {
    border-bottom: none;
}

.rc-comment-author {
    font-family: var(--rc-font-heading);
    font-weight: 600;
    color: var(--rc-black);
    margin-bottom: 4px;
}

.rc-comment-date {
    font-size: 0.8rem;
    color: var(--rc-graphite-light);
    margin-bottom: 8px;
}

.rc-comment-text {
    font-size: 0.95rem;
    line-height: 1.65;
}

.rc-comment-form label {
    display: block;
    font-family: var(--rc-font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--rc-graphite);
}

.rc-comment-form input[type="text"],
.rc-comment-form input[type="email"],
.rc-comment-form input[type="url"],
.rc-comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    font-family: var(--rc-font-body);
    font-size: 0.95rem;
    background: var(--rc-milk);
    color: var(--rc-graphite);
    transition: border-color var(--rc-transition);
    margin-bottom: 16px;
}

.rc-comment-form input:focus,
.rc-comment-form textarea:focus {
    outline: none;
    border-color: var(--rc-terracotta);
}

.rc-comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.rc-comment-form .rc-btn {
    margin-top: 8px;
}

/* ===== ФОРМА ПОИСКА ===== */
.rc-search-form {
    display: flex;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    overflow: hidden;
    background: var(--rc-white);
}

.rc-search-form input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-family: var(--rc-font-body);
    font-size: 0.95rem;
    background: transparent;
    color: var(--rc-graphite);
    outline: none;
}

.rc-search-form button {
    background: var(--rc-terracotta);
    color: var(--rc-white);
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-family: var(--rc-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--rc-transition);
}

.rc-search-form button:hover {
    background: var(--rc-terracotta-dark);
}

/* ===== 404 ===== */
.rc-404 {
    text-align: center;
    padding: 60px 0;
}

.rc-404 h1 {
    font-size: 5rem;
    color: var(--rc-terracotta);
    margin-bottom: 0.15em;
    letter-spacing: -0.03em;
}

.rc-404 h2 {
    margin-bottom: 0.6em;
}

.rc-404 p {
    color: var(--rc-graphite-light);
    margin-bottom: 2em;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.rc-404 .rc-search-form {
    max-width: 420px;
    margin: 0 auto 2em;
}

/* ===== ПОДВАЛ ===== */
.rc-footer {
    background: var(--rc-graphite);
    color: var(--rc-beige);
    padding: 50px 0 0;
}

.rc-footer a {
    color: var(--rc-beige);
}

.rc-footer a:hover {
    color: var(--rc-terracotta-light);
}

.rc-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rc-footer .widget {
    margin-bottom: 0;
}

.rc-footer .widget-title,
.rc-footer .widgettitle {
    font-family: var(--rc-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--rc-white);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rc-terracotta);
}

.rc-footer .widget ul {
    list-style: none;
}

.rc-footer .widget ul li {
    padding: 5px 0;
}

.rc-footer .widget ul li a {
    font-size: 0.9rem;
    transition: color var(--rc-transition);
}

.rc-footer .widget p,
.rc-footer .widget .textwidget {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(240, 230, 214, 0.8);
}

.rc-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-family: var(--rc-font-heading);
    font-size: 0.82rem;
    color: rgba(240, 230, 214, 0.5);
}

/* ===== COOKIE БЛОК ===== */
.rc-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--rc-graphite);
    color: var(--rc-beige);
    padding: 18px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.rc-cookie-notice.rc-cookie-visible {
    display: block;
}

.rc-cookie-inner {
    max-width: var(--rc-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rc-cookie-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(240, 230, 214, 0.85);
    flex: 1;
}

.rc-cookie-accept {
    flex-shrink: 0;
}

/* ===== ЧЕРТЁЖНЫЕ ЛИНИИ (АКЦЕНТ) ===== */
.rc-blueprint-line {
    position: relative;
}

.rc-blueprint-line::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--rc-terracotta);
    opacity: 0.3;
}

/* ===== СТРАНИЦА БЛОГА ===== */
.rc-blog-header {
    margin-bottom: 36px;
}

.rc-blog-header h1 {
    font-size: 2rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 960px) {
    .rc-hero h1 {
        font-size: 2rem;
    }

    .rc-hero {
        padding: 56px 0 48px;
    }

    .rc-cat-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rc-layout {
        flex-direction: column;
    }

    .rc-layout .rc-main,
    .rc-sidebar {
        width: 100%;
    }

    .rc-main-wide,
    .rc-main-nosidebar {
        width: 100%;
    }

    .rc-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rc-article {
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .rc-header-inner {
        padding: 12px 0;
    }

    .rc-logo .rc-logo-text {
        font-size: 1rem;
    }

    .rc-logo .rc-logo-desc {
        display: none;
    }

    .rc-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 27, 0.97);
        z-index: 105;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .rc-nav.rc-nav-open {
        display: flex;
    }

    .rc-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .rc-nav ul li a {
        font-size: 1.25rem;
        color: var(--rc-white);
        padding: 10px 24px;
    }

    .rc-nav ul li a:hover {
        background: rgba(181, 69, 42, 0.15);
    }

    .rc-menu-toggle {
        display: block;
    }

    .rc-hero h1 {
        font-size: 1.6rem;
    }

    .rc-hero p {
        font-size: 1rem;
    }

    .rc-grid {
        grid-template-columns: 1fr;
    }

    .rc-section {
        padding: 40px 0;
    }

    .rc-cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .rc-article {
        padding: 22px 18px;
    }

    .rc-comments {
        padding: 24px 18px;
    }

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

/* ===== ВЫРАВНИВАНИЯ WP ===== */
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin: 1em auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--rc-graphite-light);
    text-align: center;
    padding-top: 6px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 1.5em 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--rc-radius);
}

/* ===== SCREEN READER ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    margin: -1px;
}

.screen-reader-text:focus {
    clip: auto;
    width: auto;
    height: auto;
    display: block;
    padding: 15px 23px 14px;
    background: var(--rc-white);
    color: var(--rc-graphite);
    font-size: 0.875rem;
    z-index: 100000;
}

/* ===== ПОСТ БЕЗ МИНИАТЮРЫ ===== */
.rc-card-thumb-empty {
    background: linear-gradient(135deg, var(--rc-beige) 0%, var(--rc-beige-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-card-thumb-empty svg {
    width: 48px;
    height: 48px;
    color: var(--rc-terracotta-light);
    opacity: 0.5;
}

/* ===== PAGE HEADER ===== */
.rc-page-header {
    background: var(--rc-beige);
    border-bottom: 1px solid var(--rc-beige-dark);
    padding: 32px 0;
}

.rc-page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}
