/*
Theme Name: RizoSanTech_8937
Theme URI: https://rizo-press.ru
Author: Скворцов Роман
Author URI: https://rizo-press.ru
Description: Информационная тема о сантехнике: выбор, установка, обзоры смесителей, душевых кабин и унитазов.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rizosantech
*/

/* === RESET & BASE === */
*, *::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;
    background: #F8F9FA;
    color: #2D3E4F;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: #2C6E9E;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1E4D72;
}

h1, h2, h3, h4, h5, h6 {
    color: #1E2A3A;
    line-height: 1.3;
    margin-bottom: 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

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

table th, table td {
    border: 1px solid #CBD5E0;
    padding: 10px 14px;
    text-align: left;
}

table th {
    background: #2C6E9E;
    color: #fff;
    font-weight: 600;
}

table tr:nth-child(even) {
    background: #F1F5F9;
}

blockquote {
    border-left: 4px solid #2C9E8A;
    padding: 12px 20px;
    margin: 1.5em 0;
    background: #f0faf8;
    color: #2D3E4F;
}

/* === BUTTONS === */
.rst-btn-primary {
    display: inline-block;
    background: #2C6E9E;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    text-align: center;
}

.rst-btn-primary:hover {
    background: #1E4D72;
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 77, 114, 0.25);
}

.rst-btn-outline {
    display: inline-block;
    background: transparent;
    color: #2C9E8A;
    padding: 10px 24px;
    border-radius: 6px;
    border: 2px solid #2C9E8A;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    text-align: center;
}

.rst-btn-outline:hover {
    background: rgba(44, 158, 138, 0.1);
    color: #2C9E8A;
    box-shadow: 0 2px 8px rgba(44, 158, 138, 0.18);
}

/* === LAYOUT === */
.rst-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rst-content-area {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    align-items: flex-start;
}

.rst-main-col {
    flex: 0 0 67%;
    max-width: 67%;
    min-width: 0;
}

.rst-sidebar-col {
    flex: 0 0 27%;
    max-width: 27%;
    min-width: 0;
}

.rst-full-width .rst-main-col {
    flex: 0 0 85%;
    max-width: 85%;
    margin: 0 auto;
}

.rst-no-sidebar .rst-main-col {
    flex: 0 0 85%;
    max-width: 85%;
    margin: 0 auto;
}

/* === HEADER === */
.rst-site-header {
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 100;
}

.rst-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.rst-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rst-logo-area img {
    max-height: 46px;
    width: auto;
}

.rst-logo-area svg {
    height: 46px;
    width: auto;
}

.rst-site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E2A3A;
}

.rst-site-title a {
    color: #1E2A3A;
}

.rst-site-title a:hover {
    color: #2C6E9E;
}

.rst-site-desc {
    font-size: 0.78rem;
    color: #6B7D8E;
    margin-top: 2px;
}

/* === NAVIGATION === */
.rst-nav-main {
    display: flex;
    align-items: center;
}

.rst-nav-main ul {
    display: flex;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.rst-nav-main ul li a {
    display: block;
    padding: 8px 16px;
    color: #2D3E4F;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.rst-nav-main ul li a:hover,
.rst-nav-main ul li.current-menu-item a {
    background: #EDF2F7;
    color: #2C6E9E;
}

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

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

/* === BREADCRUMBS === */
.rst-breadcrumbs {
    padding: 14px 0;
    font-size: 0.88rem;
    color: #6B7D8E;
}

.rst-breadcrumbs a {
    color: #2C6E9E;
}

.rst-breadcrumbs a:hover {
    color: #1E4D72;
}

.rst-breadcrumbs .rst-crumb-sep {
    margin: 0 6px;
    color: #A0AEC0;
}

/* === CARDS === */
.rst-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.rst-entry-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rst-entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.rst-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #EDF2F7;
}

.rst-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rst-card-body {
    padding: 18px 20px 22px;
}

.rst-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #6B7D8E;
    margin-bottom: 10px;
}

.rst-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.rst-card-title a {
    color: #1E2A3A;
}

.rst-card-title a:hover {
    color: #2C6E9E;
}

.rst-card-excerpt {
    font-size: 0.92rem;
    color: #4A5C6E;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* === FRONT PAGE SECTIONS === */
.rst-hero-section {
    background: linear-gradient(135deg, #1E2A3A 0%, #2C6E9E 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.rst-hero-section h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.rst-hero-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 28px;
}

.rst-tiles-section {
    padding: 50px 0;
}

.rst-tiles-section h2 {
    text-align: center;
    margin-bottom: 36px;
}

.rst-tiles-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rst-tile-item {
    background: #fff;
    border-radius: 12px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rst-tile-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rst-tile-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    color: #2C6E9E;
}

.rst-tile-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.rst-tile-item p {
    font-size: 0.92rem;
    color: #4A5C6E;
}

/* Comparison Section */
.rst-compare-section {
    padding: 50px 0;
    background: #fff;
}

.rst-compare-section h2 {
    text-align: center;
    margin-bottom: 36px;
}

.rst-compare-table {
    max-width: 900px;
    margin: 0 auto;
}

.rst-compare-table th {
    background: #1E2A3A;
}

.rst-mark-best {
    background: #D1FAE5;
    color: #065F46;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rst-mark-mid {
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rst-mark-budget {
    background: #E5E7EB;
    color: #374151;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Novelties */
.rst-novelties-section {
    padding: 50px 0;
}

.rst-novelties-section h2 {
    text-align: center;
    margin-bottom: 36px;
}

.rst-badge-new {
    display: inline-block;
    background: #2C9E8A;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 6px;
}

.rst-badge-verified {
    display: inline-block;
    background: #CBD5E0;
    color: #2D3E4F;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Latest posts section on front */
.rst-latest-section {
    padding: 50px 0;
}

.rst-latest-section h2 {
    text-align: center;
    margin-bottom: 36px;
}

/* === SIDEBAR === */
.rst-sidebar-col .widget {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rst-sidebar-col .widget h2,
.rst-sidebar-col .widget-title {
    font-size: 1.1rem;
    color: #1E2A3A;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2C6E9E;
}

.rst-sidebar-col .widget ul {
    list-style: none;
    padding: 0;
}

.rst-sidebar-col .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #EDF2F7;
}

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

.rst-sidebar-col .widget ul li a {
    color: #2D3E4F;
    font-size: 0.93rem;
}

.rst-sidebar-col .widget ul li a:hover {
    color: #2C6E9E;
}

/* === SINGLE POST === */
.rst-single-article {
    background: #fff;
    border-radius: 10px;
    padding: 36px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.rst-single-article h1 {
    margin-bottom: 16px;
}

.rst-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: #6B7D8E;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #EDF2F7;
}

.rst-single-article .rst-post-body {
    font-size: 1rem;
    line-height: 1.8;
}

.rst-single-article .rst-post-body h2 {
    margin-top: 1.8em;
}

.rst-single-article .rst-post-body h3 {
    margin-top: 1.5em;
}

.rst-single-article .rst-post-body img {
    border-radius: 8px;
    margin: 1em 0;
}

/* Pros/Cons */
.rst-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 10px;
}

.rst-pros h4, .rst-cons h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rst-pros h4::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #D1FAE5;
    color: #065F46;
    border-radius: 50%;
    font-weight: 700;
}

.rst-cons h4::before {
    content: '−';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #FEE2E2;
    color: #991B1B;
    border-radius: 50%;
    font-weight: 700;
}

.rst-summary-toggle {
    margin-top: 20px;
}

.rst-summary-content {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: #EDF2F7;
    border-radius: 8px;
}

.rst-summary-content.rst-visible {
    display: block;
}

/* === PAGINATION === */
.rst-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 36px 0;
    flex-wrap: wrap;
}

.rst-pagination a,
.rst-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.rst-pagination a {
    background: #fff;
    color: #2D3E4F;
    border: 1px solid #CBD5E0;
}

.rst-pagination a:hover {
    background: #2C6E9E;
    color: #fff;
    border-color: #2C6E9E;
    box-shadow: 0 2px 8px rgba(44, 110, 158, 0.2);
}

.rst-pagination span.current {
    background: #2C6E9E;
    color: #fff;
    border: 1px solid #2C6E9E;
}

.rst-pagination .dots {
    border: none;
    background: none;
    color: #6B7D8E;
}

/* === COMMENTS === */
.rst-comments-area {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rst-comments-area h3 {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2C6E9E;
}

.rst-comment-list {
    list-style: none;
    padding: 0;
}

.rst-comment-list .comment {
    padding: 18px 0;
    border-bottom: 1px solid #EDF2F7;
}

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

.comment-author {
    font-weight: 600;
    color: #1E2A3A;
}

.comment-meta {
    font-size: 0.85rem;
    color: #6B7D8E;
    margin-bottom: 8px;
}

.rst-comments-area .comment-respond {
    margin-top: 30px;
}

.rst-comments-area label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1E2A3A;
}

.rst-comments-area input[type="text"],
.rst-comments-area input[type="email"],
.rst-comments-area input[type="url"],
.rst-comments-area textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #CBD5E0;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.rst-comments-area input:focus,
.rst-comments-area textarea:focus {
    outline: none;
    border-color: #2C6E9E;
}

.rst-comments-area .submit {
    background: #2C6E9E;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.rst-comments-area .submit:hover {
    background: #1E4D72;
}

/* === SEARCH FORM === */
.rst-search-form {
    display: flex;
    gap: 0;
}

.rst-search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #CBD5E0;
    border-radius: 6px 0 0 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.rst-search-form input[type="search"]:focus {
    outline: none;
    border-color: #2C6E9E;
}

.rst-search-form button {
    background: #2C6E9E;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.rst-search-form button:hover {
    background: #1E4D72;
}

/* === 404 === */
.rst-404-block {
    text-align: center;
    padding: 60px 20px;
}

.rst-404-block h1 {
    font-size: 5rem;
    color: #2C6E9E;
    margin-bottom: 10px;
}

.rst-404-block p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* === FOOTER === */
.rst-site-footer {
    background: #1E2A3A;
    color: #CBD5E0;
    padding: 48px 0 0;
    margin-top: auto;
}

.rst-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 36px;
}

.rst-footer-col .widget {
    color: #CBD5E0;
}

.rst-footer-col .widget h2,
.rst-footer-col .widget-title {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2C9E8A;
}

.rst-footer-col .widget ul {
    list-style: none;
    padding: 0;
}

.rst-footer-col .widget ul li {
    padding: 6px 0;
}

.rst-footer-col .widget ul li a {
    color: #A0B4C8;
    font-size: 0.93rem;
}

.rst-footer-col .widget ul li a:hover {
    color: #2C9E8A;
}

.rst-footer-col .widget p {
    font-size: 0.93rem;
    color: #A0B4C8;
    line-height: 1.6;
}

.rst-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.88rem;
    color: #6B7D8E;
}

/* === COOKIE BAR === */
.rst-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1E2A3A;
    color: #CBD5E0;
    padding: 18px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rst-cookie-bar p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 700px;
}

.rst-cookie-accept {
    background: #2C9E8A;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.rst-cookie-accept:hover {
    background: #248573;
}

.rst-cookie-bar.rst-hidden {
    display: none;
}

/* === PAGE CONTENT === */
.rst-page-content {
    background: #fff;
    border-radius: 10px;
    padding: 36px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.rst-page-content h1 {
    margin-bottom: 20px;
}

/* === BLOG PAGE === */
.rst-blog-header {
    margin-bottom: 30px;
}

/* === EMAIL SUBSCRIBE (footer) === */
.rst-subscribe-form {
    display: flex;
    gap: 0;
    margin-top: 12px;
}

.rst-subscribe-form input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #4A5C6E;
    border-radius: 6px 0 0 6px;
    background: #2D3E4F;
    color: #fff;
    font-size: 0.9rem;
}

.rst-subscribe-form input[type="email"]::placeholder {
    color: #8DA0B5;
}

.rst-subscribe-form button {
    background: #2C9E8A;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.rst-subscribe-form button:hover {
    background: #248573;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .rst-content-area {
        flex-direction: column;
    }

    .rst-main-col,
    .rst-sidebar-col,
    .rst-full-width .rst-main-col,
    .rst-no-sidebar .rst-main-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .rst-footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rst-tiles-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rst-pros-cons {
        grid-template-columns: 1fr;
    }

    .rst-hero-section h1 {
        font-size: 1.7rem;
    }
}

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

    .rst-header-inner {
        flex-wrap: wrap;
    }

    .rst-burger-toggle {
        display: block;
    }

    .rst-nav-main {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

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

    .rst-nav-main ul {
        flex-direction: column;
        gap: 0;
    }

    .rst-nav-main ul li a {
        padding: 10px 16px;
        border-radius: 0;
        border-bottom: 1px solid #EDF2F7;
    }

    .rst-cards-grid {
        grid-template-columns: 1fr;
    }

    .rst-single-article,
    .rst-page-content {
        padding: 20px;
    }

    .rst-hero-section {
        padding: 36px 0;
    }

    .rst-hero-section h1 {
        font-size: 1.5rem;
    }

    .rst-cookie-bar {
        flex-direction: column;
        text-align: center;
    }

    .rst-pagination a,
    .rst-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }
}

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