/*
Theme Name: Buildday_theme
Theme URI: https://blogrem.ru
Author: Buildday Team
Description: Адаптивная тема для блога о строительстве и ремонте (PHP 8.5 / WordPress 6.x) в фирменной цветовой гамме BuildDay (#ba421e).
Version: 2.1.2
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: buildday_theme
*/

@font-face {
    font-family: 'RotondaC';
    src: url('fonts/rotondac.eot');
    src: url('fonts/rotondac.eot?#iefix') format('embedded-opentype'),
         url('fonts/rotondac.woff') format('woff'),
         url('fonts/rotondac.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RotondaC';
    src: url('fonts/rotondac-bold.eot');
    src: url('fonts/rotondac-bold.eot?#iefix') format('embedded-opentype'),
         url('fonts/rotondac-bold.woff') format('woff'),
         url('fonts/rotondac-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bd-primary: #ba421e;
    --bd-primary-hover: #b93d18;
    --bd-primary-dark: #943e24;
    --bd-btn-dark: #8e391f;
    --bd-dark: #222222;
    --bd-text: #333333;
    --bd-muted: #666666;
    --bd-border: #e2e5e8;
    --bd-bg: #f5f6f8;
    --bd-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'RotondaC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--bd-text);
    background-color: var(--bd-bg);
    margin: 0;
    padding: 0;
}

a {
    color: var(--bd-primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--bd-primary-dark);
    text-decoration: underline;
}

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

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Контейнер и шапка */
.site-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    background: var(--bd-white);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.06);
}

.site-header {
    padding: 20px 0px 0;
    background: var(--bd-white);
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 30px;
}

.site-title {
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    display: inline-flex;
    align-items: center;
}

.site-logo-img {
    max-height: 68px;
    width: auto;
}

/* Меню: #ba421e, hover: #b93d18 */
.navbar-buildday {
    background-color: #ba421e;
    border-radius: 3px;
    margin-bottom: 20px;
    position: relative;
    border-bottom: 3px solid #943e24;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    padding: 8px 10px;
    margin: 8px 12px;
    cursor: pointer;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    margin: 4px 0;
}

.menu-primary .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.menu-primary .nav > li {
    position: relative;
}

.menu-primary .nav > li > a {
    display: block;
    padding: 12px 17px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.menu-primary .nav > li > a:hover,
.menu-primary .nav > li.active > a,
.menu-primary .nav > li.current-menu-item > a,
.menu-primary .nav > li.current-menu-ancestor > a {
    background-color: #b93d18;
    color: #ffffff;
    text-decoration: none;
}

.menu-primary .menu-item-has-children > a::after {
    content: " ▾";
    font-size: 11px;
}

.menu-primary .sub-menu,
.menu-primary .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 225px;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #ba421e;
    border: 1px solid #943e24;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.menu-primary .nav > li:hover > .sub-menu,
.menu-primary .nav > li.open > .sub-menu,
.menu-primary .nav > li:hover > .dropdown-menu,
.menu-primary .nav > li.open > .dropdown-menu {
    display: block;
}

.menu-primary .sub-menu > li > a,
.menu-primary .dropdown-menu > li > a {
    display: block;
    padding: 9px 16px;
    color: #ffffff;
    font-size: 13.5px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-primary .sub-menu > li > a:hover,
.menu-primary .sub-menu > li.current-menu-item > a,
.menu-primary .dropdown-menu > li > a:hover,
.menu-primary .dropdown-menu > li.active > a {
    background-color: #b93d18;
    color: #ffffff;
}

/* Слайдер с правой колонкой .wprpsp-post-nav-loop */
.wprpsp-pro-slider-wrp {
    position: relative;
    margin: 0 25px 28px;
    background: #1f1c1b;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.wprpsp-slider-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 390px;
}

.wprpsp-pro-slider-main {
    position: relative;
    overflow: hidden;
    min-height: 390px;
}

.wprpsp-slide {
    display: none;
    position: relative;
    height: 100%;
    min-height: 390px;
}

.wprpsp-slide.is-active {
    display: block;
}

.wprpsp-slide-img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    display: block;
    filter: brightness(0.76);
}

.wprpsp-slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 65%, transparent 100%);
    color: #ffffff;
}

.wprpsp-slide-cat {
    display: inline-block;
    background: #943e24;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.wprpsp-slide-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.wprpsp-slide-title a {
    color: #ffffff;
    text-decoration: none;
}

.wprpsp-slide-title a:hover {
    color: #ffd3c4;
}

.wprpsp-slide-excerpt {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: #ececec;
    max-width: 680px;
    line-height: 1.5;
}

.wprpsp-read-more {
    display: inline-block;
    background: #ba421e;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

.wprpsp-read-more:hover {
    background: #b93d18;
    color: #ffffff;
    text-decoration: none;
}

.wprpsp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    width: 34px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease;
}

.wprpsp-nav-btn:hover {
    background: #ba421e;
}

.wprpsp-prev { left: 10px; }
.wprpsp-next { right: 10px; }

.wprpsp-post-nav-wrap {
    background: #ffffff;
    border-left: 1px solid #e0dcd9;
    display: flex;
    flex-direction: column;
}

.wprpsp-post-nav-wrap .slick-track {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wprpsp-post-nav-loop {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    background-color: #ffffff;
    color: #000000;
    border-bottom: 1px solid #e0dcd9;
    cursor: pointer;
    transition: background-color 0.2s ease, border-left-color 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.wprpsp-post-nav-loop:last-child {
    border-bottom: none;
}

.wprpsp-post-nav-loop:hover {
    background-color: #f5f2f0;
    border-left-color: #872e13;
}

.wprpsp-post-nav-loop.slick-current,
.wprpsp-post-nav-loop.is-active {
    background-color: #872e13;
    border-left-color: #ffffff;
    color: #ffffff;
}

.wprpsp-nav-thumb {
    width: 78px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    background: #f0ece9;
}

.wprpsp-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wprpsp-nav-content {
    flex: 1;
    min-width: 0;
}

.wprpsp-nav-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #872e13;
    margin-bottom: 3px;
}

.wprpsp-nav-title {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.32;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wprpsp-post-nav-loop.slick-current .wprpsp-nav-cat,
.wprpsp-post-nav-loop.is-active .wprpsp-nav-cat,
.wprpsp-post-nav-loop.slick-current .wprpsp-nav-title,
.wprpsp-post-nav-loop.is-active .wprpsp-nav-title {
    color: #ffffff;
}

/* Основная сетка */
.site-content {
    display: flex;
    flex-wrap: wrap;
    padding: 0 25px 35px;
    gap: 30px;
}

.content-area {
    flex: 1 1 730px;
    min-width: 0;
}

.widget-area {
    flex: 0 0 320px;
    width: 320px;
}

/* Заголовки секций и кнопки */
.section-heading {
    border-bottom: 2px solid #943e24;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading .getcat {
    display: inline-block;
    background: #943e24;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    letter-spacing: 0.4px;
}

.section-heading .getcat a {
    color: #ffffff;
    text-decoration: none;
}

.btn-readmore {
    display: inline-block;
    padding: 6px 14px;
    background-color: #8e391f;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
}

.btn-readmore:hover {
    background-color: #ba421e;
    color: #ffffff;
    text-decoration: none;
}

/* Hero-блок */
.home-hero-section {
    margin-bottom: 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
}

.hero-main-card {
    border: 1px solid var(--bd-border);
    border-radius: 3px;
    overflow: hidden;
    background: var(--bd-white);
    display: flex;
    flex-direction: column;
}

.hero-main-thumb {
    display: block;
    overflow: hidden;
    height: 245px;
}

.hero-main-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-main-card:hover .hero-main-thumb img {
    transform: scale(1.03);
}

.hero-main-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-main-title {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.hero-main-title a {
    color: var(--bd-dark);
}

.hero-main-title a:hover {
    color: var(--bd-primary);
}

.hero-main-excerpt {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--bd-muted);
    flex: 1;
}

.hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-side-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bd-border);
}

.hero-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-side-thumb {
    flex: 0 0 120px;
    height: 92px;
    border-radius: 3px;
    overflow: hidden;
}

.hero-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-side-content {
    flex: 1;
    min-width: 0;
}

.hero-side-title {
    margin: 0 0 5px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.32;
}

.hero-side-title a {
    color: var(--bd-dark);
}

.hero-side-title a:hover {
    color: var(--bd-primary);
}

.hero-side-excerpt {
    margin: 0 0 6px;
    font-size: 12.5px;
    color: var(--bd-muted);
    line-height: 1.45;
}

.hero-side-content .btn-readmore {
    padding: 3px 10px;
    font-size: 11.5px;
}

/* Категории на главной */
.home-category-block {
    margin-bottom: 32px;
}

.cat-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cat-post-card {
    border: 1px solid var(--bd-border);
    border-radius: 3px;
    background: var(--bd-white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cat-post-thumb {
    display: block;
    height: 155px;
    overflow: hidden;
}

.cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cat-post-body {
    padding: 13px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cat-post-title {
    margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
}

.cat-post-title a {
    color: var(--bd-dark);
}

.cat-post-title a:hover {
    color: var(--bd-primary);
}

.cat-post-excerpt {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--bd-muted);
    line-height: 1.5;
    flex: 1;
}

/* Одиночная запись и .top-cat-links */
.single-post-article .entry-title,
.page-article .entry-title {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bd-dark);
}

.entry-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid var(--bd-border);
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--bd-muted);
}

.top-cat-links a {
    display: inline-block;
    background: #f0eded;
    color: #6f6666;
    padding: 2px 9px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
    text-decoration: none;
}

.top-cat-links a:hover {
    background: #ba421e;
    color: #ffffff;
    text-decoration: none;
}

.single-featured-image {
    margin: 0 0 20px;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.entry-content {
    font-size: 15.5px;
    line-height: 1.72;
    color: #2b2b2b;
}

.entry-content h2,
.entry-content h3 {
    color: var(--bd-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.entry-content p {
    margin: 0 0 16px;
}

.entry-footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--bd-border);
    font-size: 13px;
    color: var(--bd-muted);
}

.tags-links a {
    display: inline-block;
    background: #f0eded;
    color: #6f6666;
    padding: 2px 8px;
    border-radius: 2px;
    margin: 2px 4px 2px 0;
    font-size: 12px;
}

.tags-links a:hover {
    background: #ba421e;
    color: #ffffff;
    text-decoration: none;
}

/* Система оценок записей (#spr_container) */
#spr_container {
    margin: 26px 0;
    padding: 16px 20px;
    background: #faf8f7;
    border: 1px solid #e7dedb;
    border-left: 4px solid #ba421e;
    border-radius: 3px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.spr-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bd-dark);
    margin: 0 0 4px;
}

.spr-subtitle {
    font-size: 12.5px;
    color: var(--bd-muted);
    margin: 0;
}

.spr-stars-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spr-stars {
    display: inline-flex;
    gap: 4px;
}

.spr-star-btn {
    background: none;
    border: none;
    padding: 2px;
    font-size: 26px;
    line-height: 1;
    color: #d3ccc9;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.spr-star-btn:hover,
.spr-star-btn.is-hover,
.spr-star-btn.is-active {
    color: #ba421e;
    transform: scale(1.12);
}

.spr-star-btn:disabled {
    cursor: default;
    transform: none;
}

.spr-stats {
    font-size: 13px;
    color: var(--bd-text);
    background: #ffffff;
    border: 1px solid var(--bd-border);
    padding: 5px 11px;
    border-radius: 2px;
}

.spr-stats strong {
    color: #ba421e;
    font-size: 14.5px;
}

.spr-message {
    width: 100%;
    font-size: 12.5px;
    color: #943e24;
    font-weight: 700;
    display: none;
}

.spr-message.is-visible {
    display: block;
}

/* Похожие/случайные записи (<h2 class="relpoststh-block-title">) */
.relpoststh-block {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 2px solid #943e24;
}

.relpoststh-block-title {
    display: inline-block;
    background: #943e24;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 15px;
    margin: 0 0 18px;
    letter-spacing: 0.3px;
}

.relpoststh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.relpoststh-card {
    border: 1px solid var(--bd-border);
    border-radius: 3px;
    background: #ffffff;
    padding: 14px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.relpoststh-card:hover {
    border-color: #ba421e;
    box-shadow: 0 4px 14px rgba(186, 66, 30, 0.1);
}

.relpoststh-card-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    min-height: 40px;
}

.relpoststh-card-title a {
    color: var(--bd-dark);
    text-decoration: none;
}

.relpoststh-card-title a:hover {
    color: #ba421e;
}

.relpoststh-card-thumb {
    display: block;
    height: 145px;
    margin: 0 0 10px;
    border-radius: 2px;
    overflow: hidden;
}

.relpoststh-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.relpoststh-card-excerpt {
    margin: 0 0 13px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bd-muted);
    flex: 1;
}

.relpoststh-card-footer {
    margin-top: auto;
}

/* Архивы, поиск, пагинация */
.archive-header {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #943e24;
}

.archive-title {
    margin: 0;
    font-size: 22px;
    color: var(--bd-dark);
}

.archive-list-item {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--bd-border);
}

.archive-list-thumb {
    flex: 0 0 220px;
    height: 150px;
    border-radius: 3px;
    overflow: hidden;
}

.archive-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-list-body {
    flex: 1;
    min-width: 0;
}

.archive-list-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.archive-list-title a {
    color: var(--bd-dark);
}

.archive-list-title a:hover {
    color: var(--bd-primary);
}

.archive-list-meta {
    font-size: 12.5px;
    color: var(--bd-muted);
    margin-bottom: 8px;
}

.archive-list-excerpt {
    margin: 0 0 12px;
    font-size: 14px;
    color: #444444;
}

.pagination-wrap {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination-wrap .page-numbers {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid var(--bd-border);
    background: var(--bd-white);
    color: var(--bd-text);
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 2px;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
    background: #ba421e;
    border-color: #ba421e;
    color: #ffffff;
    text-decoration: none;
}

/* Сайдбар и виджеты */
.widget {
    margin-bottom: 26px;
    background: var(--bd-white);
    border: 1px solid var(--bd-border);
    border-radius: 3px;
    padding: 16px;
}

.widget-title {
    margin: -16px -16px 15px;
    padding: 10px 16px;
    background: #943e24;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #ba421e;
}

.search-form {
    display: flex;
    gap: 6px;
}

.search-form label {
    flex: 1;
}

.search-field {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #cccccc;
    border-radius: 2px;
    font-size: 14px;
    font-family: inherit;
}

.search-submit {
    padding: 8px 15px;
    background: #ba421e;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    font-weight: 700;
    cursor: pointer;
}

.search-submit:hover {
    background: #b93d18;
}

#wp-calendar {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}

#wp-calendar caption {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--bd-dark);
}

#wp-calendar th {
    background: #f0f2f5;
    padding: 6px 4px;
    font-weight: 700;
}

#wp-calendar td {
    padding: 6px 4px;
    border: 1px solid #f0f0f0;
}

#wp-calendar td a {
    display: block;
    background: #ba421e;
    color: #ffffff;
    font-weight: 700;
    border-radius: 2px;
}

#wp-calendar #today {
    background: #8e391f;
    color: #ffffff;
    font-weight: 700;
}

.bd-archive-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bd-archive-year {
    border-bottom: 1px solid var(--bd-border);
}

.bd-archive-year:last-child {
    border-bottom: none;
}

.bd-archive-year-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 9px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--bd-dark);
    cursor: pointer;
    text-align: left;
}

.bd-archive-year-btn:hover {
    color: #ba421e;
}

.bd-archive-year-btn .toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.bd-archive-year.is-open .bd-archive-year-btn .toggle-icon {
    transform: rotate(90deg);
}

.bd-archive-months {
    display: none;
    list-style: none;
    margin: 0 0 10px;
    padding: 4px 0 4px 14px;
    border-left: 2px solid #ba421e;
}

.bd-archive-year.is-open .bd-archive-months {
    display: block;
}

.bd-archive-months li {
    padding: 4px 0;
    font-size: 13.5px;
    display: flex;
    justify-content: space-between;
}

.bd-archive-count {
    color: var(--bd-muted);
    font-size: 12px;
}

.bd-interesting-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bd-interesting-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.bd-interesting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bd-interesting-thumb {
    flex: 0 0 68px;
    height: 54px;
    border-radius: 2px;
    overflow: hidden;
}

.bd-interesting-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-interesting-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}

.bd-interesting-title a {
    color: var(--bd-dark);
}

.bd-interesting-title a:hover {
    color: #ba421e;
}

/* Комментарии и подвал */
.comments-area {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 2px solid var(--bd-border);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.comment-body {
    padding: 14px;
    border: 1px solid var(--bd-border);
    border-radius: 3px;
    margin-bottom: 14px;
    background: #fafafa;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cccccc;
    border-radius: 2px;
    font-family: inherit;
    font-size: 14px;
}

.comment-form .submit {
    padding: 10px 20px;
    background: #ba421e;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    font-weight: 700;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: #b93d18;
}

.site-footer {
    background: #973619;
    color: #cccccc;
    padding: 20px 25px;
    font-size: 13.5px;
    border-top: 3px solid #ba421e;
}

.site-footer a {
    color: #ffffff;
}

/* Адаптивность */
@media (max-width: 992px) {
    .wprpsp-slider-layout {
        grid-template-columns: 1fr;
    }

    .wprpsp-post-nav-wrap {
        border-left: none;
        border-top: 1px solid #363130;
    }

    .wprpsp-post-nav-wrap .slick-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .wprpsp-post-nav-loop {
        border-bottom: 1px solid #363130;
        border-right: 1px solid #363130;
    }

    .widget-area {
        flex: 1 1 100%;
        width: 100%;
    }

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

@media (max-width: 767px) {
    .site-header,
    .site-content,
    .site-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .wprpsp-pro-slider-wrp {
        margin-left: 15px;
        margin-right: 15px;
    }

    .wprpsp-post-nav-wrap .slick-track {
        grid-template-columns: 1fr;
    }

    .navbar-toggle {
        display: block;
    }

    .menu-primary {
        display: none;
    }

    .menu-primary.is-open {
        display: block;
    }

    .menu-primary .nav {
        flex-direction: column;
    }

    .menu-primary .nav > li > a {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .menu-primary .sub-menu,
    .menu-primary .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 15px;
    }

    .cat-cards-grid,
    .relpoststh-grid {
        grid-template-columns: 1fr;
    }

    .archive-list-item {
        flex-direction: column;
    }

    .archive-list-thumb {
        flex: none;
        width: 100%;
        height: 190px;
    }

    .wprpsp-slide-img,
    .wprpsp-slide,
    .wprpsp-pro-slider-main {
        height: 290px;
        min-height: 290px;
    }

    .wprpsp-slide-title {
        font-size: 18px;
    }
}
