/*
Theme Name: dds_ticovilla.com
Theme URI: https://ticovilla.com/
Author: Фомина Диана
Author URI: https://ticovilla.com/
Description: Тема для информационного сайта о виллах, отелях и отдыхе во Вьетнаме. Авторская типографика, вьетнамская палитра, адаптивный дизайн.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_ticovilla
*/

/* ====== ШРИФТЫ ====== */
@import url("/assets/23cef75d0d6ee0d667d6.css");

/* ====== ПЕРЕМЕННЫЕ ====== */
:root {
    --tv-bg: #F9F6F0;
    --tv-bg-warm: #FBEFD9;
    --tv-bg-sand: #F1E4CB;
    --tv-accent: #C25A3C;
    --tv-accent-deep: #A4452B;
    --tv-jade: #1E6B5E;
    --tv-jade-deep: #154C42;
    --tv-jade-dust: #8FB7AE;
    --tv-text: #2C2A29;
    --tv-text-mute: #6D6A68;
    --tv-line: #D9CDB6;
    --tv-shadow: 8px 6px 0 rgba(30, 107, 94, 0.10), -3px 3px 14px rgba(194, 90, 60, 0.12);
    --tv-shadow-hover: 10px 10px 0 rgba(30, 107, 94, 0.18), -4px 6px 22px rgba(194, 90, 60, 0.20);
    --tv-radius: 14px;
    --tv-radius-pill: 40px;
    --tv-font-head: 'Playfair Display', Georgia, serif;
    --tv-font-body: 'Lora', 'Times New Roman', serif;
}

/* ====== БАЗА ====== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--tv-bg);
    color: var(--tv-text);
    font-family: var(--tv-font-body);
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.012em;
    -webkit-font-smoothing: antialiased;
}

p {
    margin: 0 0 1em;
    /* фон не задаём — правило F */
}

a {
    color: var(--tv-accent);
    text-decoration: none;
    border-bottom: 1px dotted rgba(194, 90, 60, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover {
    color: var(--tv-jade);
    border-bottom-color: var(--tv-jade);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tv-font-head);
    color: var(--tv-text);
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 700;
    letter-spacing: 0.005em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; color: var(--tv-jade-deep); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; color: var(--tv-accent-deep); }

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

.tv-skip {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.tv-skip:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    background: var(--tv-jade);
    color: #fff;
    padding: 10px 16px;
    width: auto;
    height: auto;
    z-index: 9999;
    border-radius: 8px;
}

/* ====== КОНТЕЙНЕРЫ ====== */
.tv-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.tv-wrap {
    width: min(1180px, 92%);
    margin: 0 auto;
}

main {
    flex: 1 0 auto;
    padding: 36px 0 60px;
}

.tv-layout {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
}
.tv-layout--no-sidebar .tv-content {
    width: 85%;
    margin: 0 auto;
}
.tv-layout--no-sidebar {
    display: block;
}

/* ====== ШАПКА ====== */
.tv-header {
    background:
        radial-gradient(ellipse 800px 200px at 90% 0%, rgba(143, 183, 174, 0.20), transparent 60%),
        linear-gradient(180deg, var(--tv-bg-warm), var(--tv-bg));
    border-bottom: 1px solid var(--tv-line);
    padding: 22px 0 18px;
    position: relative;
}
.tv-header::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--tv-accent) 0 22px,
        transparent 22px 30px
    );
    opacity: 0.5;
}
.tv-header-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.tv-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 1 auto;
    text-decoration: none;
    border: none;
}
.tv-brand:hover { border: none; }

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}
.tv-brand-svg {
    width: 64px;
    height: 64px;
    display: block;
    color: var(--tv-accent);
}
.tv-brand-text {
    display: flex;
    flex-direction: column;
}
.tv-brand-name {
    font-family: var(--tv-font-head);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--tv-text);
    letter-spacing: 0.06em;
    line-height: 1.05;
}
.tv-brand-desc {
    font-size: 0.82rem;
    color: var(--tv-text-mute);
    font-style: italic;
    max-width: 380px;
    line-height: 1.4;
}

/* ====== НАВИГАЦИЯ ====== */
.tv-nav {
    background: var(--tv-bg);
    border-top: 1px solid var(--tv-line);
    border-bottom: 1px solid var(--tv-line);
    padding: 10px 0;
}
.tv-nav-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}
.tv-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--tv-jade);
    color: var(--tv-jade);
    padding: 8px 14px;
    border-radius: var(--tv-radius-pill);
    cursor: pointer;
    font-family: var(--tv-font-body);
    font-size: 0.95rem;
}
.tv-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tv-menu-list li a {
    display: inline-block;
    padding: 8px 18px;
    color: var(--tv-text);
    border: 1px solid transparent;
    border-radius: var(--tv-radius-pill);
    font-size: 0.97rem;
    transition: all 0.25s ease;
}
.tv-menu-list li a:hover,
.tv-menu-list li.current-menu-item a {
    background: var(--tv-accent);
    color: #fff;
    border-color: var(--tv-accent);
}
.tv-search-mini {
    flex: 0 0 auto;
}

/* ====== КНОПКИ ====== */
.tv-btn,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    background: var(--tv-accent);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: var(--tv-radius-pill);
    font-family: var(--tv-font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.18s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
    text-decoration: none;
    border-bottom: none;
}
.tv-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--tv-jade);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(30, 107, 94, 0.25);
    border-bottom: none;
}
.tv-btn--ghost {
    background: transparent;
    color: var(--tv-jade);
    border: 1px solid var(--tv-jade);
}
.tv-btn--ghost:hover {
    background: var(--tv-jade);
    color: #fff;
}

/* ====== ПОИСК ====== */
.tv-searchform {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.tv-searchform input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--tv-jade-dust);
    border-radius: var(--tv-radius-pill);
    background: #fff;
    font-family: var(--tv-font-body);
    font-size: 0.95rem;
    color: var(--tv-text);
    outline: none;
    transition: border-color 0.2s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B5E' stroke-width='1.6'><path d='M9.5 4 C 8 4 6 5 6 7 v 6 c 0 1 1 2 3.5 2 s 3.5 -1 3.5 -2 V 7 c 0 -2 -2 -3 -3.5 -3 z'/><circle cx='9.5' cy='9.5' r='1.5'/><line x1='9.5' y1='15' x2='9.5' y2='20'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
    padding-right: 42px;
}
.tv-searchform input[type="search"]:focus {
    border-color: var(--tv-accent);
}

/* ====== ХЛЕБНЫЕ КРОШКИ ====== */
.tv-crumbs {
    font-size: 0.86rem;
    color: var(--tv-text-mute);
    padding: 14px 0 18px;
    border-bottom: 1px dashed var(--tv-line);
    margin-bottom: 22px;
}
.tv-crumbs a {
    color: var(--tv-jade);
    border: none;
}
.tv-crumbs a:hover { color: var(--tv-accent); }
.tv-crumb-sep {
    margin: 0 8px;
    color: var(--tv-jade-dust);
}

/* ====== КАРТОЧКИ ЗАПИСЕЙ ====== */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin: 24px 0 36px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--tv-radius);
    overflow: hidden;
    box-shadow: var(--tv-shadow);
    transition: box-shadow 0.3s ease, transform 0.25s ease;
    position: relative;
    border: 1px solid rgba(217, 205, 182, 0.7);
}
.card:hover {
    box-shadow: var(--tv-shadow-hover);
    transform: translateY(-2px);
}

.card-thumb-wrap {
    overflow: hidden;
    background: var(--tv-bg-sand);
}
.card-thumb-wrap a {
    display: block;
    border: none;
}
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.card:hover .card-thumb-wrap img {
    transform: scale(1.04);
}
.card-thumb-placeholder {
    display: block;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0, transparent 40%),
        linear-gradient(135deg, var(--tv-bg-sand), var(--tv-jade-dust));
}

.card-bamboo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--tv-jade);
    color: #fff;
    padding: 5px 14px 5px 22px;
    font-size: 0.75rem;
    font-family: var(--tv-font-body);
    letter-spacing: 0.04em;
    border-radius: 20px;
    border: none;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.card-bamboo-badge::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--tv-bg-warm);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.card-bamboo-badge:hover {
    background: var(--tv-accent);
    color: #fff;
    border: none;
}

.card-body {
    flex: 1;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-family: var(--tv-font-head);
    font-size: 1.18rem;
    margin: 0 0 8px;
    line-height: 1.3;
}
.card-title a {
    color: var(--tv-text);
    border: none;
}
.card-title a:hover {
    color: var(--tv-accent);
}
.card-meta {
    font-size: 0.78rem;
    color: var(--tv-text-mute);
    margin-bottom: 10px;
    font-style: italic;
}
.card-excerpt {
    font-size: 0.95rem;
    color: var(--tv-text);
    line-height: 1.6;
    margin-bottom: 14px;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-foot {
    margin-top: auto;
    padding-top: 8px;
}
.card-more {
    display: inline-block;
    padding: 8px 22px;
    border-radius: var(--tv-radius-pill);
    background: var(--tv-bg-sand);
    color: var(--tv-jade-deep);
    font-size: 0.88rem;
    border: 1px solid var(--tv-jade-dust);
    transition: all 0.25s ease;
    text-decoration: none;
}
.card-more:hover {
    background: var(--tv-jade);
    color: #fff;
    border-color: var(--tv-jade);
}

/* ====== САЙДБАР ====== */
.tv-sidebar {
    font-size: 0.95rem;
}
.tv-widget {
    background: #fff;
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-radius);
    padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: 4px 4px 0 rgba(30, 107, 94, 0.06);
}
.tv-widget-title {
    font-family: var(--tv-font-head);
    font-size: 1.1rem;
    margin: 0 0 14px;
    color: var(--tv-jade-deep);
    padding-bottom: 8px;
    border-bottom: 2px dotted var(--tv-accent);
}
.tv-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tv-widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--tv-line);
}
.tv-widget ul li:last-child {
    border-bottom: none;
}
.tv-widget ul li a {
    border: none;
    color: var(--tv-text);
}
.tv-widget ul li a:hover {
    color: var(--tv-accent);
}

/* ====== ЗАПИСЬ ====== */
.tv-post {
    background: #fff;
    border-radius: var(--tv-radius);
    border: 1px solid var(--tv-line);
    padding: 32px 36px;
    box-shadow: var(--tv-shadow);
}
.tv-post-title {
    font-size: 2rem;
    margin: 0 0 8px;
    line-height: 1.2;
}
.tv-post-meta {
    font-size: 0.85rem;
    color: var(--tv-text-mute);
    font-style: italic;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--tv-line);
}
.tv-post-meta a { color: var(--tv-jade); border: none; }
.tv-post-thumb {
    margin: 0 -36px 24px;
    overflow: hidden;
}
.tv-post-thumb img {
    width: 100%;
    display: block;
}
.tv-post-content {
    font-size: 1.02rem;
    line-height: 1.78;
}
.tv-post-content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background: var(--tv-bg-warm);
    border-left: 4px solid var(--tv-accent);
    font-style: italic;
    color: var(--tv-text);
    border-radius: 0 var(--tv-radius) var(--tv-radius) 0;
}
.tv-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--tv-line);
}
.tv-post-content th,
.tv-post-content td {
    padding: 10px 14px;
    border: 1px solid var(--tv-line);
    text-align: left;
}
.tv-post-content th {
    background: var(--tv-bg-warm);
    font-family: var(--tv-font-head);
    color: var(--tv-jade-deep);
}
.tv-post-content figure { margin: 1.3em 0; }
.tv-post-content img { border-radius: 8px; }
.tv-post-content ul,
.tv-post-content ol {
    padding-left: 1.4em;
}
.tv-post-content li { margin: 0.3em 0; }

/* ====== ГЛАВНАЯ — ТЕМАТИЧЕСКИЕ БЛОКИ ====== */
.tv-front-section {
    margin: 36px 0 44px;
    padding: 36px 38px;
    border-radius: var(--tv-radius);
    background:
        linear-gradient(135deg, var(--tv-bg-warm) 0%, var(--tv-bg) 100%);
    border: 1px solid var(--tv-line);
    position: relative;
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(30, 107, 94, 0.08);
}
.tv-front-section--jade {
    background:
        linear-gradient(135deg, rgba(30, 107, 94, 0.08), var(--tv-bg) 80%);
    border-color: var(--tv-jade-dust);
}
.tv-front-section h2 {
    margin-top: 0;
    font-size: 1.85rem;
    position: relative;
    padding-bottom: 12px;
}
.tv-front-section h2::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--tv-accent);
}
.tv-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 22px;
}
.tv-col-card {
    background: #fff;
    padding: 20px 22px;
    border-radius: var(--tv-radius);
    border: 1px solid var(--tv-line);
}
.tv-col-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--tv-accent-deep);
}
.tv-col-card p:last-child { margin-bottom: 0; }

.tv-front-latest {
    margin: 36px 0 44px;
}
.tv-front-latest h2 {
    text-align: center;
    margin-bottom: 8px;
}
.tv-front-latest-sub {
    text-align: center;
    color: var(--tv-text-mute);
    font-style: italic;
    margin-bottom: 28px;
}

/* ====== ПАГИНАЦИЯ ====== */
.tv-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 36px 0 12px;
}
.tv-pagination a,
.tv-pagination span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--tv-radius-pill);
    border: 1px solid var(--tv-jade-dust);
    color: var(--tv-text);
    font-size: 0.95rem;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tv-pagination a {
    border-bottom: 1px solid var(--tv-jade-dust);
}
.tv-pagination a:hover {
    background: var(--tv-jade);
    color: #fff;
    border-color: var(--tv-jade);
}
.tv-pagination .current {
    background: var(--tv-accent);
    color: #fff;
    border-color: var(--tv-accent);
}

/* ====== КОММЕНТАРИИ ====== */
.tv-comments {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed var(--tv-line);
}
.tv-comments-title {
    font-family: var(--tv-font-head);
    font-size: 1.4rem;
    margin: 0 0 18px;
    color: var(--tv-jade-deep);
}
.tv-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.tv-comment-list .comment {
    margin-bottom: 18px;
    padding: 16px 20px;
    background: var(--tv-bg-warm);
    border-radius: var(--tv-radius);
    border: 1px solid var(--tv-line);
}
.tv-comment-list .comment-author {
    font-family: var(--tv-font-head);
    font-weight: 700;
    color: var(--tv-accent-deep);
    margin-bottom: 4px;
}
.tv-comment-list .comment-date {
    font-size: 0.78rem;
    color: var(--tv-text-mute);
    font-style: italic;
}
.tv-comment-list .children {
    list-style: none;
    margin: 14px 0 0 22px;
    padding: 0;
}
.comment-respond {
    margin-top: 22px;
}
.comment-respond label {
    display: block;
    font-size: 0.92rem;
    margin: 8px 0 4px;
    color: var(--tv-text-mute);
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--tv-jade-dust);
    border-radius: 10px;
    font-family: var(--tv-font-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--tv-text);
}
.comment-respond textarea { min-height: 110px; resize: vertical; }

/* ====== 404 ====== */
.tv-404 {
    text-align: center;
    padding: 50px 20px;
}
.tv-404-num {
    font-family: var(--tv-font-head);
    font-size: 6.5rem;
    color: var(--tv-accent);
    line-height: 1;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.tv-404 p { font-size: 1.1rem; color: var(--tv-text-mute); }
.tv-404 .tv-searchform { max-width: 480px; margin: 22px auto; }

/* ====== ПОДВАЛ ====== */
.tv-footer {
    background:
        linear-gradient(180deg, var(--tv-bg) 0%, var(--tv-bg-sand) 100%);
    border-top: 1px solid var(--tv-line);
    padding: 38px 0 22px;
    margin-top: auto;
    color: var(--tv-text);
    position: relative;
}
.tv-footer::before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--tv-jade) 0 22px,
        transparent 22px 30px
    );
    opacity: 0.5;
}
.tv-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 28px;
}
.tv-footer-col h2,
.tv-footer-col .tv-widget-title {
    font-family: var(--tv-font-head);
    font-size: 1.15rem;
    margin: 0 0 12px;
    color: var(--tv-jade-deep);
    border-bottom: 1px dotted var(--tv-accent);
    padding-bottom: 8px;
}
.tv-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tv-footer-col ul li {
    padding: 4px 0;
}
.tv-footer-col ul li a {
    color: var(--tv-text);
    border: none;
    font-size: 0.92rem;
}
.tv-footer-col ul li a:hover {
    color: var(--tv-accent);
}

.tv-footer-bottom {
    border-top: 1px dashed var(--tv-line);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.tv-jade-seal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--tv-jade);
    color: #fff;
    padding: 10px 18px 10px 14px;
    border-radius: 10px;
    font-family: var(--tv-font-head);
    font-size: 0.9rem;
    box-shadow: 2px 2px 0 var(--tv-jade-deep), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    letter-spacing: 0.05em;
}
.tv-jade-seal-mark {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--tv-accent);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
}
.tv-jade-seal-mark::before {
    content: 'Ф';
    position: absolute;
    inset: 0;
    color: #fff;
    font-size: 0.78rem;
    text-align: center;
    line-height: 22px;
    font-family: var(--tv-font-head);
    font-weight: 700;
}
.tv-seasons {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--tv-text-mute);
}
.tv-season {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--tv-radius-pill);
    border: 1px solid var(--tv-jade-dust);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
}
.tv-season-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}
.tv-season--dry .tv-season-icon { background: var(--tv-accent); }
.tv-season--rain .tv-season-icon { background: var(--tv-jade); }
.tv-season--dragon .tv-season-icon { background: var(--tv-bg-sand); border: 1px solid var(--tv-accent); }

.tv-copyright {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--tv-text-mute);
}

/* ====== COOKIE-БАННЕР ====== */
/* ВАЖНО: правило с [hidden] — до основного блока (правило A11) */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: var(--tv-text);
    color: #fff;
    padding: 16px 22px;
    border-radius: var(--tv-radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 880px;
    margin: 0 auto;
    font-size: 0.92rem;
    line-height: 1.5;
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
    color: #f7f3ec;
}
.cookie-banner button {
    background: var(--tv-accent);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: var(--tv-radius-pill);
    cursor: pointer;
    font-family: var(--tv-font-body);
    font-size: 0.95rem;
    transition: background 0.2s ease;
}
.cookie-banner button:hover { background: var(--tv-jade); }

/* ====== АДАПТИВ ====== */
@media (max-width: 960px) {
    .tv-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .tv-layout--no-sidebar .tv-content { width: 100%; }
    .tv-footer-grid { grid-template-columns: 1fr 1fr; }
    .tv-post { padding: 26px 22px; }
    .tv-post-thumb { margin: 0 -22px 20px; }
    .tv-front-section { padding: 26px 22px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .tv-header-row { gap: 14px; }
    .tv-brand-name { font-size: 1.25rem; }
    .tv-brand-desc { font-size: 0.78rem; }
    .tv-nav-toggle { display: inline-block; }
    .tv-menu-list {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 8px 0;
    }
    .tv-menu-list[data-open="true"] { display: flex; }
    .tv-menu-list li { width: 100%; }
    .tv-menu-list li a {
        display: block;
        padding: 10px 14px;
        border-radius: 10px;
    }
    .tv-search-mini { width: 100%; order: 3; }
    .tv-nav-inner { flex-wrap: wrap; }
    .tv-grid { grid-template-columns: 1fr; gap: 22px; }
    .tv-footer-grid { grid-template-columns: 1fr; }
    .tv-post-title { font-size: 1.5rem; }
    .tv-front-section { padding: 22px 18px; }
    .tv-404-num { font-size: 4.5rem; }
    .cookie-banner {
        left: 8px; right: 8px; bottom: 8px;
        padding: 14px 16px;
    }
}

/* ====== УТИЛИТЫ ====== */
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption {
    max-width: 100%;
    margin: 1.2em 0;
    font-size: 0.85rem;
    color: var(--tv-text-mute);
    text-align: center;
}
.wp-caption-text { padding: 6px 0; font-style: italic; }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* WP стандартные классы галерей */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 1.4em 0;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}
